in reply to Need script help
ALWAYS ALWAYS ALWAYS put "use strict;" at the top of your script. If you are learning Perl from a book that doesn't explain strict, you need a better book.my @servers = qw( foo bar baz quux ); while (@servers) { my @group = splice @servers, 0, 3; print "group: @group\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need script help
by Anonymous Monk on Sep 22, 2016 at 20:34 UTC |