weird@sub.wetshaving.social to linuxmemes@lemmy.world · 8 days agoOne-linersub.wetshaving.socialexternal-linkmessage-square24fedilinkarrow-up1564arrow-down110
arrow-up1554arrow-down1external-linkOne-linersub.wetshaving.socialweird@sub.wetshaving.social to linuxmemes@lemmy.world · 8 days agomessage-square24fedilink
minus-squareAlph4d0g@discuss.tchncs.delinkfedilinkarrow-up6·7 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!