Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Split

by btrott (Parson)
on Feb 14, 2001 at 04:55 UTC ( #58271=note: print w/replies, xml ) Need Help??


in reply to How do I use Split

The arg to your sub isn't in $_, it's in @_. To be specific it's the first element in @_:
($year, $month, $day) = split(/-/, $_[0], 3);

Replies are listed 'Best First'.
Re: Split
by fastkeys (Novice) on Feb 14, 2001 at 05:01 UTC
    Works now. Thanks for your help :)

    Alex

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2020-05-29 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (171 votes). Check out past polls.

    Notices?