Probably painfully obvious...
Where is this preceding space coming from:
cat test_space.pl
^
#!/usr/local/bin/perl -w
open(FILE,file);
@array = (
line 1\n,
line 2\n,
line 3\n,
\n,
);
print FILE @array;
system(cat file);
On Wednesday, June 4, 2003, at 11:17 AM, Harry Putnam wrote:
Where is this preceding space coming from:
print FILE @array;
It's coming from your interpolation of the array in a string
(@array). It joins them, adding a space between them by default.
Try this:
print FILE join '', @array;
Harry Putnam wrote:
Probably painfully obvious...
Where is this preceding space coming from:
cat test_space.pl
^
#!/usr/local/bin/perl -w
open(FILE,file);
@array = (
line 1\n,
line 2\n,
line 3\n,
\n,
);
print
James Edward Gray II [EMAIL PROTECTED] writes:
On Wednesday, June 4, 2003, at 11:17 AM, Harry Putnam wrote:
Where is this preceding space coming from:
print FILE @array;
It's coming from your interpolation of the array in a string
(@array). It joins them, adding a space between them by