Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Odd workings of split

by Jenda (Abbot)
on Mar 31, 2012 at 07:16 UTC ( #962728=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Odd workings of split
in thread Odd workings of split

The important thing is that the () is abound the whole subroutine call, not just around the parameters. split("\n", $cmd[$_])[0] would not work.

Jenda
Enoch was right!
Enjoy the last years of Rome.

Comment on Re^3: Odd workings of split
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2016-04-28 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (437 votes). Check out past polls.