in reply to Re^5: Symbolic references
in thread Symbolic references
Just a minor note: your way to iterate thru different arguments by index is rather cumbersome
just do
~$ perl -E 'foreach $arg (@ARGV) { say split /\//,$arg }' 1/2 a/b/c 12 abc
And plz consider using strict and warnings!
Cheers Rolf
( addicted to the Perl Programming Language)
|
---|
In Section
Seekers of Perl Wisdom