in reply to How can I use 'split' with unknown amount of variables?
my $s = "one|two|three|four"; (@items)=split /\|/, $s; print "NI = $#items+1\n@items\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How can I use 'split' with unknown amount of variables?
by steves (Curate) on Dec 30, 2001 at 12:07 UTC | |
by mrbbking (Hermit) on Dec 30, 2001 at 18:34 UTC |