Data::Dumper: auto reference

Jan Kasprzak kas na fi.muni.cz
Pátek Květen 23 13:16:06 CEST 2008


Jiri Polcar wrote:
: narazil jsem na jednu zahadu pri pouzit funkce Dumper z modulu
: Data::Dumper:

	Na co presne tohle potrebujete? Pokud je cilem ulozit strukturu
a pozdeji ji zpracovat, proc ne Storable misto Data::Dumperu?

:      When set, Data::Dumper will emit single, non-self-referential
:      values as atoms/terms rather than statements.  This means that the
:      $VARn names will be avoided where possible, but be advised that
:      such output may not always be parseable by "eval".

	Terse dela jen to, ze na zacatku neni "$VAR1 = " a na konci strednik,
pokud jsem pochopil. Deepcopy = 1 je asi to co chcete.

-Jan Kasprzak

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/    Journal: http://www.fi.muni.cz/~kas/blog/ |
>>  If you find yourself arguing with Alan Cox, you’re _probably_ wrong.  <<
>>     --James Morris in "How and Why You Should Become a Kernel Hacker"  <<


Další informace o konferenci Perl