Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: split function

by Anonymous Monk
on Jan 25, 2012 at 03:23 UTC ( #949815=note: print w/replies, xml ) Need Help??


in reply to split function

$ perl -le " my($1,$2) ; " Can't use global $1 in "my" at -e line 1, near "($1" Execution of -e aborted due to compilation errors.

$1,$2... are reserved for match operator (regex)

Post real code, that compiles under strict/warnings

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949815]
help
Chatterbox?
[Discipulus]: their
erix counts their toes

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-05-23 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?