Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^6: Symbolic references

by LanX (Canon)
on Apr 15, 2013 at 13:16 UTC ( #1028736=note: print w/ replies, xml ) Need Help??


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)


Comment on Re^6: Symbolic references
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-07-04 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls