in reply to Re: beginner syntax question
in thread beginner syntax question
will make the script fall over, due the extraneous semi-colon after the open call.open(IPFILE,"<iplist.txt"); # open readonly || die "Could not open iplist.txt:$! \n";
@openip = split('.',$stip); # split(/\./,$stip); reproduces the original problem. That backslash needs to be there.
What's the point of offering a rewritten version, if you're not even going to test it? Oh, XP whoring :-)
I have to agree though, the use of strict, and moving chomp do make life easier in the long run.
Just for the record, having fixed those two problems, I get:
10.1.2.2 10.1.2.200 4
|
|---|