in reply to split trying to look for /
And you'll also want to be using a scalar as a second argument to split, not an array.my @date = split '/', '16/12/2003'; print "Day = $date[0]\n"; print "Month = $date[1]\n"; print "Year = $date[2]\n"; __output__ Day = 16 Month = 12 Year = 2003
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: split trying to look for /
by duff (Parson) on Dec 16, 2003 at 15:38 UTC | |
by Coruscate (Sexton) on Dec 16, 2003 at 18:14 UTC | |
by duff (Parson) on Dec 17, 2003 at 02:08 UTC |