Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Prototyping - is it necessary?

by bioMan (Beadle)
on Sep 01, 2005 at 19:49 UTC ( [id://488475]=note: print w/replies, xml ) Need Help??


in reply to Re: Prototyping - is it necessary?
in thread Prototyping - is it necessary?

Yes, I caught that bug after my post. Originally I had a statement before

(my $datafile, $chomp) = @_;

That read,

my $chomp = 0;

... but I removed it knowing that if I could remove the prototyping and only pass in a value for $datafile then $chomp would automatically be set to undef. I forgot to move "my" outside the parentheses. Poof! a bug!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-19 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found