shanonvl has asked for the wisdom of the Perl Monks concerning the following question:
i want to make the 2nd and 3rd lines into a single stmt... i figure this should be a no brainer and frankly, i'm a bit embarrased that i have to ask.. :) thanks in advance!my $value = "morning,afternoon,night"; my @tmp = split /,/, $value; my $list_ref = \@tmp;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to write this in shorthand?
by halley (Prior) on Sep 26, 2005 at 19:08 UTC | |
by shanonvl (Initiate) on Sep 26, 2005 at 19:11 UTC |