Archive for the ‘Perl’ Category

Automation Leveraging NSX REST API Guide

Tuesday, June 21st, 2016

I also published this blog post about automation leveraging the NSX REST API on the VMware NSX Network Virtualization Blog on June 21, 2016. The full blog post is provided below and can also be seen on the VMware NSX Network Virtualization Blog site. (more…)

Twitt

Monitoring VMware NSX SpoofGuard with REST API and Perl

Friday, June 17th, 2016

I also published this blog post about monitoring VMware NSX SpoofGuard with REST API and Perl on the VMware NSX Network Virtualization Blog on June 17, 2016. The full blog post is provided below and can also be seen on the VMware NSX Network Virtualization Blog site. (more…)

Twitt

Creator of Perl, Larry Wall, on Programming Languages

Saturday, August 23rd, 2014


Creator of Perl, Larry Wall, when asked, “What are the five programming languages everyone, even non-programmers, should know about and why?”:

Twitt

Eclipse IDE for Java EE Developers

Saturday, April 20th, 2013

Eclipse Juno 4.2One of my favorite development tools at an unbelievably low price – FREE! Can’t get much better than that. Download ‘Eclipse IDE for Java EE Developers’ and give it a try. If you are not much of a Java/J2EE programmer, that’s ok – just download one of the many plugins available for C/C++, Perl, Python, etc. The latest Eclipse release is Eclipse Juno (4.2) SR2. For more information, see the Eclipse website at http://www.eclipse.org/. (more…)

Twitt

Perl – Changing the Input Line Separator and Using the “chomp” Function

Friday, January 6th, 2012

In this blog I demonstrate how you can change the input line separator in Perl and use Perl’s “chomp” function. Note, the input line separator is operating system dependent; see the following prior blog of mine where I discuss this subject in more detail: Unix shell script – convert Mac ASCII file to Unix ASCII file. The “chomp” function checks to see if the last character of a string or list of strings matches the line separator character stored in the ‘$/’ system variable; if there is a match, the character is deleted. (more…)

Twitt

Perl – Uppercase to Lowercase Conversion via the Translation Operator

Wednesday, January 4th, 2012

Perl’s translation operator provides a way to substitute one group of characters for another. In the below script I demonstrate how easy it is to use the translation operator to convert standard input from the command prompt from uppercase letters to lowercase. You can also use Perl’s lc() function to accomplish the same thing more easily. (more…)

Twitt

Perl – Using Pattern-sequence Memory with Regular Expressions

Thursday, December 29th, 2011

Pattern-sequence memory is very useful when you want to match the same character in several places but don’t care which character you match as long as all occurrences are the same character. For example, the below code matches the date format “dd-mm-yy” where the dashes can be any two of the same non-word characters (in regex notation the range would be [^_0-9a-zA-Z]). Pattern sequences are stored in memory from left to right, so “\1″ would represent the first match. (more…)

Twitt

Perl – Obtain the File Size

Friday, December 9th, 2011

Here is a cool one line Perl script you can use to quickly obtain the file size of a file. The syntax to run the script is “perl [scriptname] [filename]“; in the below example I use the script itself as the file. (more…)

Twitt

Perl – Writing the Linux ‘cat’ Utility

Friday, December 9th, 2011

The below Perl code will give you similar results compared to the Linux ‘cat’ utility. At the command prompt, just enter “perl [scriptname] [filename1] [filename2] etc … (more…)

Twitt

Perl – File-Test Operators

Friday, December 9th, 2011

In Perl, file-test operators are useful for determining the status of a file. Some of the operators below refer to the “real user” which is the User ID specified at login rather than “effectve User ID” which refers to the User ID you are currently working under. The general syntax is -[file-test operator] [operand being tested]. (more…)

Twitt