in reply to how to write this in shorthand?
There are other ways, as I'm sure you'll see in follow-up nodes. Read perldoc perlreftut and perlref for more information on the [] and {} syntax for constructing literal data structures.my $value = "morning,afternoon,night"; my $list_ref = [ split /,/, $value ];
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to write this in shorthand?
by shanonvl (Initiate) on Sep 26, 2005 at 19:11 UTC |