Stephen Spalding wrote:
> Hello all,
>
> I have a question about perl. I'm trying to pass an
> array into a subroutine, but I don't know what the
> proper way to receive it in the subroutine is. Below
> is an example of what I'm trying to do. The ???
> represents what I do not know what to put in.
Oh, sorry. Be sure to pass the array as a ref. Like this.
PRINT_CONTENTS(\@sample_array);
Jordan
On Thu, 2003-02-13 at 15:18, Stephen Spalding wrote:
> Hello all,
>
> I have a question about perl. I'm trying to pass an
> array into a subroutine, but I don't know what the
> proper way to receive
Replace those question marks with shift. The line should look like this.
my @local_array = shift;
Jordan
On Thu, 2003-02-13 at 15:18, Stephen Spalding wrote:
> Hello all,
>
> I have a question about perl. I'm trying to pass an
> array into a subroutine, but I don't know what the
> proper way to
'there',steve'];
-Original Message-
From: Stephen Spalding [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 4:18 PM
To: CGI; redhat
Subject: Perl question
Hello all,
I have a question about perl. I'm trying to pass an
array into a subroutine, but I don&
Hello all,
I have a question about perl. I'm trying to pass an
array into a subroutine, but I don't know what the
proper way to receive it in the subroutine is. Below
is an example of what I'm trying to do. The ???
represents what I do not know what to put in.
@sample_array = ('hi', 'there', 'ste
-Oh, yeah! Standards).
If it's just for you, party down. I tend to use the heredoc syntax if I'm
writing for others:
print <<"EndOfText";
-Original Message-
> From: David Draley [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 9:22 AM
> To: [E
what is the difference between
print qq|
|;
vs. the
print "\n";
print "\n";
print "\n";
print "\n";
vs. the
print <<"EndOfText";
http://explorer.msn.com