in reply to After i made the script of commenting out lines , it starts to make bugs :S <<HELP!>>
What have you done so far to debug this problem?
The spaces come because you do:
print HAN "@array";
And that's just what Perl does. When you print an array, Perl inserts $" between the array elements. And $" is set to a space by default. Read perlvar and maybe do:
local $" = "";
before printing. Or print line by line:
print HAN $_ for @array;
@array is a very bad name for a list containing the lines of a file.
|
|---|