I'm just learning Perl and can't figure out why this code does not work.
#!/usr/bin/env perl
use strict;
use warnings;
open(my $configfile, "<", 'PoliceLog.txt') or die "Could not read file\n";
my @configdata = split 'zz', $configfile;
print "$configdata[0]\n";
close $configfile;[/b]
I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.