BaldGorilla has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use Data::Dumper; my $file = $ARGV[0]; my $new_file = $file . '.new'; open (my $fh, "<", $file) or die $!; open (my $new_fh, ">", $new_file) or die $!; while (my $line = <$fh>){ print $new_fh "$line"; } close $fh; close $new_fh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Null \x00 being replaced by space \x20
by Athanasius (Archbishop) on Nov 10, 2018 at 03:38 UTC | |
by BaldGorilla (Initiate) on Nov 10, 2018 at 04:18 UTC | |
by syphilis (Archbishop) on Nov 10, 2018 at 06:56 UTC | |
by BaldGorilla (Initiate) on Nov 12, 2018 at 19:20 UTC | |
|
Re: Null \x00 being replaced by space \x20
by BillKSmith (Monsignor) on Nov 10, 2018 at 05:00 UTC | |
|
Re: Null \x00 being replaced by space \x20
by Anonymous Monk on Nov 10, 2018 at 06:43 UTC | |
by ikegami (Patriarch) on Nov 10, 2018 at 09:46 UTC |