Re: passing parms to subroutine

2003-10-29 Thread lorid
Thanks. I didnt see anything about the $$ for refering to the value in my book , but then again Im in a hurry. anyway - I get it, it works now Lori Moon, John wrote: SUN1-BATCHperl -e 'my $a=abc; Show(\$a);sub Show {my ($value)[EMAIL PROTECTED];print value=$$value\n;}' value=abc

Re: passing parms to subroutine

2003-10-29 Thread Rob Dixon
Lori wrote: Im used to subs in C or VB but this has me puzzled... I am trying to pass a scalar ref to a subroutine, When I try to use the value of the passed parm inside the sub Im getting a garbage value (has address instead of value? ) from my process_files sub,and the increment sub, but

RE: passing parms to subroutine

2003-10-29 Thread Farrington, Ryan
Title: RE: passing parms to subroutine Look for dereferencing. Section 4.8.2 in Perl in a Nutshell -Original Message- From: lorid [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 29, 2003 2:14 PM To: Moon, John Cc: perl users Subject: Re: passing parms to subroutine Thanks