Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 exploiting the Monastery: (14)
As of 2014-10-20 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (87 votes), past polls