Braindead this morning - unwanted spc

2003-06-05 Thread Harry Putnam
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);

Re: Braindead this morning - unwanted spc

2003-06-05 Thread James Edward Gray II
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;

RE: Braindead this morning - unwanted spc

2003-06-05 Thread Bob Showalter
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

Re: Braindead this morning - unwanted spc

2003-06-05 Thread Harry Putnam
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