Jenda Krynicky wrote:
>
> Desmond Lim wrote:
>
> > I have 3 arrays @arr1, @arr2 and @arr3.
>
> Do not do that!
Yeah. I guess that summarises it :)
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: "Desmond Lim" <[EMAIL PROTECTED]>
> I have 3 arrays @arr1, @arr2 and @arr3.
Do not do that!
http://www.oreillynet.com/pub/a/network/2001/05/18/perl_redflags.html
Jenda
= [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
When it comes to wine, women and song, wizards are allowed
to
Desmond Lim <[EMAIL PROTECTED]> wrote:
:
: I have 3 arrays @arr1, @arr2 and @arr3.
:
: I need to print them into the same file and I'm doing this.
:
: open FILE, ;
: print FILE "@arr1\n";
: print FILE "@arr2\n";
: print FILE "@arr3\n";
: close FILE;
:
: I would like to shorten it to
:
: for ($
Desmond Lim wrote:
>
> I have 3 arrays @arr1, @arr2 and @arr3.
>
> I need to print them into the same file and I'm doing this.
>
> open FILE, ;
> print FILE "@arr1\n";
> print FILE "@arr2\n";
> print FILE "@arr3\n";
> close FILE;
>
> I would like to shorten it to
>
> for ($i=0;$i<4;$i++) {
> prin
I have 3 arrays @arr1, @arr2 and @arr3.
I need to print them into the same file and I'm doing this.
open FILE, ;
print FILE "@arr1\n";
print FILE "@arr2\n";
print FILE "@arr3\n";
close FILE;
I would like to shorten it to
for ($i=0;$i<4;$i++) {
print FILE "@arr$i\n";
}
I know there is an erro