#!/usr/bin/perl print "Entrez votre ip :"; $ip=; @t=split(/(.)/,$ip); # Surround the delimiter in (), then the # regexp matches become array elements print scalar @t,"\n"; # Don't waste a variable print "[$_]\n" for @t; # Surround each match by brackets, # print each match on its own line.