go ahead... be a heretic | |
PerlMonks |
More Argumentsby joaming (Novice) |
on Sep 05, 2015 at 03:31 UTC ( [id://1141111]=perlquestion: print w/replies, xml ) | Need Help?? |
joaming has asked for the wisdom of the Perl Monks concerning the following question: Hi, I am new to Perl, learning how to parse a linux log file. So, I grep sth from the log, serving as input to m parse script and print the result to a proper format.
This works fine, but I would like to supply more parameter to my perl script to determine the format style, eg. will print the result vertically, will print the result in columnized format. I tried to capture it by $ARGV[0], $ARGV1, but still failed. Please kindly help More, i did a simple test
$ grep "Name=" sample.log | perl SimpleTest.pl VERTICAL
Then , it just stopped and not execute the foreach loop
Back to
Seekers of Perl Wisdom
|
|