sunil9009 has asked for the wisdom of the Perl Monks concerning the following question:
Can I have some simple solution. Something like this ? Its not working though. Dont know why
#!/usr/bin/perl -w use strict; use warnings; open(my $fh, '<', '/tmp/list') or die "Unable to open file, $!"; my @entire_file=<$fh>; for my $i (0..$#entire_file) { my @group; push @group,$entire_file[$i] until ( $i % 5 == 0 ); `tool.pl @group`; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can I have some simple solution
by davido (Cardinal) on Apr 11, 2014 at 04:18 UTC | |
|
Re: Can I have some simple solution
by boftx (Deacon) on Apr 11, 2014 at 01:36 UTC | |
|
Re: Can I have some simple solution
by DrHyde (Prior) on Apr 11, 2014 at 10:35 UTC | |
|
Re: Can I have some simple solution
by sunil9009 (Acolyte) on Apr 11, 2014 at 05:45 UTC |