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

Re: Buffer overflow

by synapse0 (Pilgrim)
on Jul 07, 2001 at 02:06 UTC ( [id://94633]=note: print w/replies, xml ) Need Help??


in reply to Buffer overflow

Another possibility might lie in the way you're calling your subs.
when you call a sub using &sub_name, it passes @_ in a global fassion, meaning any changes to @_ are affected throughout the script. My explanation may be slightly off on that, but if you're going to call your subs using & with no args, it's safer to pass an empty set to it using ().. i.e. call &sub_name() rather than &sub_name
Without seeing the code, i dont' know if that's the case or not, but i do know you'll eventually run into problems calling subs like that.
-Syn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-16 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found