Re: string and hash [quite long]
- From: No_name <h2so4@xxxxxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 22:50:40 GMT
Paul Lalli wrote:
> No_name wrote:
>> Hi at hall, I am a beginner and I've got this problem: translate a
>> string, runtime generated by lsdvd program, into an hash. The string is
>> similar at this:
>> our %lsdvd = (
>> device => '/dev/dvd',
>> title => 'DVDVOLUME',
>> vmg_id => 'DVDVIDEO-VMG',
>> provider_id => '',
>> track => [
>> {
>> ix => 1,
>> length => 5309.090,
>> vts_id => 'DVDVIDEO-VTS',
>> },
> <snip>
>> ],
>> longest_track => 1,
>> );
>> There is a way?
>>
>
> You want to take a string that looks like perl code and evaluate it as
> perl code? Try:
> perldoc -f eval
>
> Paul Lalli
Yes the program can print out a string that is "perl code". I'll try eval.
Thanks
.
- References:
- string and hash [quite long]
- From: No_name
- Re: string and hash [quite long]
- From: Paul Lalli
- string and hash [quite long]
- Prev by Date: Re: string and hash [quite long]
- Next by Date: FAQ 5.36 Why does Perl let me delete read-only files? Why does "-i" clobber protected files? Isn't this a bug in Perl?
- Previous by thread: Re: string and hash [quite long]
- Next by thread: Re: string and hash [quite long]
- Index(es):
Relevant Pages
|