McMahon has asked for the wisdom of the Perl Monks concerning the following question:
when it's all finished,open COMP, "+>$file"; print COMP "$var1\n"; push @comp, "$var1\n"; <some stuff> print COMP "\t$var2\n"; push @comp, "\t$var2\n"; my @array = <COMP>
...and that just doesn't seem right. I'd like to understand what's going on here. I hope I've provided enough code.@array ne @comp
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: print vs push?
by Roy Johnson (Monsignor) on Aug 20, 2004 at 15:46 UTC | |
Re: print vs push?
by Fletch (Bishop) on Aug 20, 2004 at 15:46 UTC | |
Re: print vs push?
by lhoward (Vicar) on Aug 20, 2004 at 15:47 UTC |