in reply to Re: Generating and storing regexp
in thread Generating and storing regexp
Thank you for your reply. I did implement YAML and while generating I store two hashes. One without regexps and one with with regexps. When I store it I load it again and compares the two hashes and they are the same, everything is fine. BUT when I load it in my main program, I get segmentation fault on the one with regexps but the other get read without any problem. They are loaded with the same function but not at the same time. What could be wrong?
Made a test for ruling out errors, still the same thing
Output#!/usr/bin/perl use warnings; use strict; use YAML::XS qw(LoadFile Dump); my $ref_LOG = LoadFile("modules/patterns.data"); print Dump($ref_LOG);
--- ~ Segmentation fault
The data file looks sane, and it was verified...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Generating and storing regexp
by Eliya (Vicar) on Feb 20, 2011 at 17:42 UTC | |
by noodleish (Novice) on Feb 20, 2011 at 19:55 UTC |