good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Tracking down errors in data from input files.by hipowls (Curate) |
on Mar 07, 2008 at 10:55 UTC ( [id://672734]=note: print w/replies, xml ) | Need Help?? |
Two things, first @array=(@array,$number); is more efficiently written as push @array, $number;. The way you wrote it the entire contents of @array are copied each time. Second see Carp for printing the call stack. At its simplest
In Section
Seekers of Perl Wisdom
|
|