in reply to printing to a file
and when you print to the file, you useprint @values;
See the quotes? They make a difference. In the former case, it's print that expands the array, and in the later case, it is the string interpolation.print NEW "@newfile";
Personally, I would say both methods are inadvisable: when you are printing arrays, determine their formating explicitly - for instance with a join.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: printing to a file
by Fletch (Bishop) on Apr 02, 2004 at 18:45 UTC | |
Re: Re: printing to a file
by calin (Deacon) on Apr 02, 2004 at 19:06 UTC |