in reply to Redirection problem / question
Um, try
my $input = do { binmode STDIN; local $/; <STDIN>; };
Also,
use Path::Tiny qw/ path /; use Data::Dump qw/ dd /; my $input = path( 'input' )->slurp_raw ; my $output = Net::CIDR::cidr2octets( $input ); path( 'output')->spew_raw( $output ); dd( $input, $output ); ## for debugging/SOPW :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Redirection problem / question
by Anonymous Monk on Apr 30, 2015 at 02:04 UTC | |
by taint (Chaplain) on Apr 30, 2015 at 07:09 UTC | |
Re^2: Redirection problem / question
by taint (Chaplain) on Apr 30, 2015 at 01:28 UTC | |
by Anonymous Monk on Apr 30, 2015 at 01:38 UTC | |
by taint (Chaplain) on Apr 30, 2015 at 01:47 UTC | |
by GotToBTru (Prior) on Apr 30, 2015 at 02:04 UTC | |
by taint (Chaplain) on Apr 30, 2015 at 06:50 UTC |
In Section
Seekers of Perl Wisdom