Perl, Trim White Space from a String
July 13, 2010 · by Paul Ooi · in Systems
When we grep a bunch of string, there are white spaces where we wish to trim, especially the white space at the beginning and the end of a string. There is no trim function in Perl like trim in PHP….
Open file and Splitting String in Perl
January 20, 2010 · by Paul Ooi · in Systems
What I gonna do is to read a bunch of data from a file, and perform some data processing from the string. split() is the Perl function which I will use for filtering the data. open for reading a file…