dtd1941 has asked for the wisdom of the Perl Monks concerning the following question:
I figure this must be my error, but I can not find it.
#!/usr/bin/perl use strict; use warnings; my $ip="158.21.17.45"; my @values = split(".", $ip); print $ip,"\t\t",$#values,"\n"; exit(0); ----running the above---- ./temp3.pl 158.21.17.45 -1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: does split(".") work?
by Joost (Canon) on Nov 15, 2009 at 23:23 UTC | |
by jwkrahn (Abbot) on Nov 16, 2009 at 00:23 UTC | |
by ysth (Canon) on Nov 16, 2009 at 05:45 UTC | |
|
Re: does split(".") work?
by ikegami (Patriarch) on Nov 16, 2009 at 00:05 UTC | |
|
Re: does split(".") work?
by biohisham (Priest) on Nov 15, 2009 at 23:25 UTC |