weird@sub.wetshaving.social to linuxmemes@lemmy.world · 16 days agoOne-linerimagemessage-square24linkfedilinkarrow-up1566arrow-down110
arrow-up1556arrow-down1imageOne-linerweird@sub.wetshaving.social to linuxmemes@lemmy.world · 16 days agomessage-square24linkfedilink
minus-squareAlph4d0g@discuss.tchncs.delinkfedilinkarrow-up6·15 days agoI don’t have to use a perl script to view the contents of a file? open(my $fh, ‘<’, ‘filename.txt’) or die “Could not open file: $!”; while (my $line = <$fh>) { print $line; } close($fh); Sick!
I don’t have to use a perl script to view the contents of a file?
open(my $fh, ‘<’, ‘filename.txt’) or die “Could not open file: $!”; while (my $line = <$fh>) { print $line; } close($fh);
Sick!