weird@sub.wetshaving.social to linuxmemes@lemmy.world · 25 days agoOne-linersub.wetshaving.socialimagemessage-square20linkfedilinkarrow-up1544arrow-down111
arrow-up1533arrow-down1imageOne-linersub.wetshaving.socialweird@sub.wetshaving.social to linuxmemes@lemmy.world · 25 days agomessage-square20linkfedilink
minus-squareAlph4d0g@discuss.tchncs.delinkfedilinkarrow-up5·24 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!