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"
In reply to Split on . (dot) by fo0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |