in reply to split and assign to arrayref in one go?

You need [...] for creating array refs:
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
    Oh my! I think it's time to go home, if I couldn't have seen it by myself. Probably I'm working too long already. Thanks a lot for your solution!
    -- 
    Ronald Fischer <ynnor@mm.st>