in reply to Re: Parsing output from a 'system' call into objects?
in thread Parsing output from a 'system' call into objects?
my @lines = split /\n/, `cat data.txt`;
can be replaced by
chomp( my @lines = `cat data.txt` );
It only makes sense to commands different to cat , of course, otherwise you'd just
open my $IN, '<', 'data.txt' or die $!; chomp( my @lines = <$IN> );
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|