Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Sub Params as references

by chromatic (Archbishop)
on Aug 14, 2002 at 03:36 UTC ( [id://189983]=note: print w/replies, xml ) Need Help??


in reply to Sub Params as references

You've copied the value pointed to by the reference. When you copy a reference, you're still pointing to the same value. When you copy a dereference, you get a fresh copy of the value.

my $file_name = shift; my $lines_in = shift; # skip a few $$lines_in .= $_;

Log In?
Username:
Password:

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

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

    No recent polls found