in reply to Re^6: foreach type of deal?
in thread foreach type of deal?

ug... will "too early in the morning" work at 4pm?

while( my $line = <$in> ) { $line = substr($line,1); print $out $line; }

Replies are listed 'Best First'.
Re^8: foreach type of deal?
by hoagies (Initiate) on Mar 15, 2017 at 22:26 UTC

    I got it!!! The error was coming from:

    close $in

    close $out

    They were outside of the block! :D. Now the whole thing works flawlessly. Thanks again for everything!