CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Yaml help

 



jubegnx
Novice

Jun 4, 2007, 10:28 PM

Post #1 of 2 (490 views)
Yaml help Can't Post

Hi i need some help using YAML. Im trying to save an object to yaml using

Code
YAML::DumpFile('saved.dat', $a);

and to load the file back for use

Code
$b = YAML::LoadFile('saved.dat');

however every time i try to load the file i get this error "Segmentation fault" How can i fix this or is there another way to save an object and load it for later use?


maximus
Novice

Jun 11, 2007, 2:06 PM

Post #2 of 2 (481 views)
Re: [jubegnx] Yaml help [In reply to] Can't Post

DONT use $a and $b, they have special meaning in PERL, use $varA & $varB or something else.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives