Command line perl replacing sed,awk
While updating svn of framework3 in Backtrack, it failed as it was locked. So I can resolve by removing all the lock files in the folders. I tried to pipe the list of files to rm but failed. So thought...
View ArticlePerl – References
References in Perl is just imitation of Pointers in C In C, *p = &var; In Perl, $p = \$var; These references can be applied to all kinds of variables, function, hashes and arrays. Just add \...
View ArticlePerl Files Notes 3
Reading from Files my $var; read (FILE, $var, 1024); #reading in block size Similarly write(FILE, $var, 1024); This works fantastically when dealing with binary files so that fetching and writing is...
View ArticlePerl Notes 2
Files Standard Files STDIN STDOUT STDERR To read Input from Keyboard $ input = <STDIN>; To read input from keyboard until Ctrl+D or Ctrl+Z is pressed while (<STDIN>){ #input read...
View ArticlePerl Notes
Perl Notes String Literals Single quotes are blind. Perl starts from ‘ and stops the literal till ‘ blindly. Double quotes parse the literal for special characters such as \t,\n\r,\U..\E and...
View Article