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]