Weekly list FAQ posting

2003-02-13 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addre

Re: Perl question

2003-02-13 Thread Jordan Mclain
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

Re: Perl question

2003-02-13 Thread Jordan Mclain
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

RE: Perl question

2003-02-13 Thread Bob Showalter
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.

Re: mkdir will not work with a variable

2003-02-13 Thread Tom McKellips
I tried your line and the only thing that happens is I get an error page in the browsererror 500 and the only thing I can find in the log files is premature end of script headers. I have tried the script with and without the -T set still no luck either way. Thanks Tom On Wed, 12 Feb 2003 20:26

Re: mkdir will not work with a variable

2003-02-13 Thread Wiggins d'Anconia
Tom McKellips wrote: I tried your line and the only thing that happens is I get an error page in the browsererror 500 and the only thing I can find in the log files is premature end of script headers. I have tried the script with and without the -T set still no luck either way. Had you alread

Perl question

2003-02-13 Thread Stephen Spalding
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

RE: Perl question

2003-02-13 Thread Paul Kraus
Pass it as a referance. #!/usr/bin/perl -w @sample_array = ('hi', 'there', 'steve'); $sample_array_ref = \@sample_array; &PRINT_CONTENTS($sample_array_ref); exit 0; sub PRINT_CONTENTS{ my $local_ref = $_[0]; foreach (@{$local_ref}){ print "string = $_\n"; } } You can also clean the c