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
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
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