vectorvillain has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl # IP ranger open(IPFILE,"iplist.txt"); while (<IPFILE>) { ($stip,$edip) = split(/:/,$_); chomp ($edip); print "$stip\n"; print "$edip\n"; @openip = split(/./,$stip); $count = @openip; print "$count\n"; # for ($i = 0; $i <= 4; $i++) { # print "@srtip\n"; # }; }; close(IPFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: beginner syntax question
by dragonchild (Archbishop) on Sep 19, 2001 at 17:33 UTC | |
by s0ttle (Scribe) on Sep 19, 2001 at 18:02 UTC | |
by dragonchild (Archbishop) on Sep 19, 2001 at 18:09 UTC | |
by TGI (Parson) on Sep 19, 2001 at 20:00 UTC | |
by buckaduck (Chaplain) on Sep 19, 2001 at 20:40 UTC | |
by tommyw (Hermit) on Sep 19, 2001 at 18:11 UTC | |
|
Re: beginner syntax question
by Anonymous Monk on Sep 19, 2001 at 19:38 UTC | |
by vectorvillain (Novice) on Sep 19, 2001 at 23:28 UTC |