madM has asked for the wisdom of the Perl Monks concerning the following question:
Hi!
i just wanted to know what happens when you use the split operator without nothing and why it´s needed to dereference \@numbers(this code reads a file with a matrix and builds it in the @matrix array)
Thanks!
while(<$fastd> ) { chomp; my @numbers = split; push @matrix, \@numbers; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Explaining small Code
by hdb (Monsignor) on Sep 20, 2013 at 14:25 UTC | |
Re: Explaining small Code
by kcott (Archbishop) on Sep 20, 2013 at 14:25 UTC | |
Re: Explaining small Code
by Bloodnok (Vicar) on Sep 20, 2013 at 14:24 UTC | |
Re: Explaining small Code
by Marshall (Canon) on Sep 21, 2013 at 03:52 UTC | |
Re: Explaining small Code
by Grimy (Pilgrim) on Sep 21, 2013 at 18:26 UTC |
Back to
Seekers of Perl Wisdom