Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Tracking down errors in data from input files.

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

use Carp qw(carp); carp "data $variable not valid in mySub\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://672734]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-23 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found