[Toulouse-pm] split
Thierry B.
oulala at chez.com
Thu Jan 16 09:42:00 CST 2003
On Thu, Jan 16, 2003 at 03:41:13PM +0100, eric.vernichon.ev at borchers.fr wrote:
>
>
> $_= "deb.fin";
> ($debut,$fin)=split (/./);
> print "debut : $debut";
> print "fin : ".$fin;
>
>
> $debut ne contient pas deb et $fin ne contient pas fin ?
>
>
Le '.' est un caractère spécial pour les expresions de split,
il faut l'escaper: split (/\./)
$ perldoc perlre
--
--------------- http://tboudet.free.fr/cv.html ---------------
More information about the Toulouse-pm
mailing list