On Mon, 21 Feb 2000, Robert Canary wrote:

> Hi,
> 
> Sorry for the perl question.....
> 
> I have extracted from a log file ta line that reads that reads something
> like this:
> item1='value', item2='value2', item3='value3'
> 
> i am trying to get parse the line as to assign to an array as such:
> $line{item1}=$value1 etc etc etc

That needs to be something like

$line{$item1} = $value1

Constants are :

$line{'somevalue'} = $value1;

Perl variables always start with $



                Igmar


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to