On Mon, Dec 03, 2001 at 03:00:39PM +0000, Sean Patterson wrote:
> I just started learning Perl.  I need help in writing a solution for the 
> following:
> 

[ ..zap.. ]

> 
>       foreach $line (@list) {
>       ($time, $url, $title)=split(/|/, $line);     # this does not seem to work

You have to escape the | which has a special meaning with a \ :

($time, $url, $title)=split(/\|/, $line);     # this works


-- 
Ce qu'il y a d'enivrant dans le mauvais goût, c'est le plaisir
aristocratique de déplaire.

Charles Baudelaire - Mon coeur mis à nu.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to