Posts Tagged ‘perl’

Automation Leveraging NSX REST API Guide

Saturday, August 6th, 2016

I first wrote 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, July 29th, 2016

I first wrote 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

Security, Art of Hacking, & the Worst 2014 Security Breaches

Sunday, March 1st, 2015

Hacked TargetSecurity is hot; no doubt about it. Consider the fact that between 2011 and 2013, venture investors put nearly $3 billion into cyber security companies, resulting in new funding for some 300 firms (Source: Thomson Reuters). Worldwide security software revenue alone totaled $19.9 billion in 2013, a 4.9 percent increase from 2012 revenue of $19.0 billion (Source: Gartner). According to Gartner, global cybersecurity spending is to reach $76.9 billion in 2015 and $80 billion in 2016; in 2011 it stood at $55 billion. (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