> Message du 19/11/08 15:37 > De : "[EMAIL PROTECTED]" > A : beginners@perl.org > Copie à : > Objet : printing element from a 'split' file > > while () { > chomp; > split /\s+/, @_; > print "$_\n"; > } >
That probably should be: while(<FILE>) { chomp; my @elements = split; print "@elements"; } split should be executed on a scalar, not on a list. -- Jeff Pang http://home.arcor.de/pangj/ Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.