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.
- Re: [offtopic]Perl:assigning an array Brad 'GreyBear' Davis
- Re: [offtopic]Perl:assigning an array Robert Canary
- Re: [offtopic]Perl:assigning an array Brad 'GreyBear' Davis
- Re: [REDHAT] Re: [offtopic]Perl:assigning a... David Kramer
- Re: [REDHAT] Re: [offtopic]Perl:assigni... rpjday
- Re: [OT][REDHAT] Re: [offtopic]Perl... Bret Hughes
- Re: [OT][REDHAT] Re: [offtopic... rpjday
- Re: [OT][REDHAT] Re: [offt... Bret Hughes
- Re: [OT][REDHAT] Re: [offt... Robert Canary
- Re: [OT][REDHAT] Re: [offtopic... Dave Ihnat
- Re: [RedHat-List] Re: [offtopic]Perl:assigning an ar... Igmar Palsenberg
- Re: [RedHat-List] Re: [offtopic]Perl:assigning ... Cameron Simpson
- [offtopic]Perl:assigning an array Robert Canary
