in reply to split and assign to arrayref in one go?
my $aref = [ split(/\D+/,"1,2xx4:17") ];
See perlreftut, perlref and References Quick Reference for details. (Update: I just noticed the latter is about dereferencing, not about creating anonymous data structures. Might be helpful nonetheless).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: split and assign to arrayref in one go?
by rovf (Priest) on Jun 16, 2008 at 16:05 UTC |