>>>>> "KalyanRaj" == KalyanRaj <kalyanrajs@...> writes:
KalyanRaj> chomp($a = $ARGV); # holds value 5
KalyanRaj> chomp($b = $ARGV); # holds value 6
The arguments on the command-line are typically not ending in newline, so you
shoudln't chomp them in the same way you chomp reading from a filehandle.
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!