Hi Feherke,
Thanks for your help. Let me step back and explain what I'm trying to do and see if it makes sense.
I'm a retired engineer working with several other volunteers to publish a weekly senior citizens email newsletter for our town. The newsletter popularity is growing and is now sent to...
I thought one split command would split an entire file but it appears it returns when it does one split so you have to keep cycling through it? I found an example online and changed it to use my filename. Here it is -
#!/usr/bin/perl
# perl split function example
$filename = 'PoliceLog.txt'...
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.