Quantcast
Channel: Wikihead's Blog » perl
Browsing latest articles
Browse All 5 View Live

Image may be NSFW.
Clik here to view.

Perl 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


Image may be NSFW.
Clik here to view.

Perl 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 Article


Image may be NSFW.
Clik here to view.

Perl 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 Article

Image may be NSFW.
Clik here to view.

Perl – 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 Article

Image may be NSFW.
Clik here to view.

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 Article

Browsing latest articles
Browse All 5 View Live