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