- or download this
package Tie::File::Custom;
use strict;
...
sub CHOMP { $_[1] =~ s/$_[0]->{NL}$// }
"This Statement is false";
- or download this
#!/usr/bin/perl
use strict;
...
while ( <fh> ) {
print $_, "-\n";
}
- or download this
#!/usr/bin/perl
use strict;
...
(tied *fh)->CHOMP( $_ );
print "$_\n";
}