fo0 has asked for the wisdom of the Perl Monks concerning the following question:
Ok,i know split(/./,.. ')is wrong to match '.' I don't understand why @t is empty, but nevertheless $x=@t; return me n elements ...$ip=<STDIN>; @t=split(/./,$ip); $x=@t; print "$x\n"; print "@t\n";
foonikens@xxxx:~$ ./ipcalc.pl Entrez votre ip :21.23 6
An idea ?
janitored by ybiC: Retitle from "Array empty"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array empty
by barrd (Canon) on Oct 05, 2003 at 13:04 UTC | |
|
Re: Array empty
by delirium (Chaplain) on Oct 05, 2003 at 14:31 UTC | |
by Aristotle (Chancellor) on Oct 05, 2003 at 18:39 UTC | |
|
Re: Array empty
by arno (Scribe) on Oct 05, 2003 at 13:09 UTC | |
by bart (Canon) on Oct 05, 2003 at 14:11 UTC |