I have a subroutine that, amongst other things, chops a scalar variable, 
$dir, passed to it as an argument.  The problem is that I need $dir intact (ie 
unchopped) after calling said subroutine, but it has been altered by the chop.  
I 
can't figure out how to pass the value (or more precisely, a copy of the 
value) of $dir to subroutine so that it's operations do not alter what $dir 
originally contained.  I've read Mr. Wall's Camelbook and saw lots of info on 
hard, 
soft, and symbolic references, but nothing (that I could understand) about 
passing a copy of variable to a subroutine and not the variable itself.


thanks in advance,
jhm

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to