bhsaurabh/learning_perl — pull request #1 by avar (2014-05-26 12:43:09+00:00)
Title: Just a couple of minor tips

Just a couple of minor idioms you may not know about, also check out "perldoc perlrun" for some tips, e.g. the grep stuff you implemented can be done as a one-liner with:

$ perl -ne 'print if /pattern/' < anx-convert.log

Which is just:

$ perl -MO=Deparse -ne 'print if /0/' < anx-convert.log

Also interesting:

$ perl -MO=Deparse -pe 's/foo/bar/g' < anx-convert.log