in reply to Re: File Processing for YAWL...
in thread File Processing for YAML...

The third row has an "illegal" set of characters for YAML... i.e. 3: <bracket><some number><bracket> <some text> It causes issues when I run the following sample:
use File::Slurp; use YAML::XS; use Data::Dumper; print Dumper Load scalar read_file('output.txt');
Sorry, the rest of the code was cut off....
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my @config; open FILE, "<output.txt" or die $!; while (<FILE>) { chomp; push @config, { split /[^N\n*]/ }; # push @config, $_; } print Dumper( @config );
I am sure it has to do with the regexp... But I also think that I am not dealing with the file_read properly for the split to occur... TIA

Replies are listed 'Best First'.
Re^3: File Processing for YAWL...
by ww (Archbishop) on Sep 08, 2010 at 22:31 UTC
    "The third row has an "illegal" set of characters for YAWL... i.e. 3: <bracket><some number><bracket> <some text>"

    Umm, yeah. We kind of needed to know that in the first place, since the data in your OP gives no hint that an illegal character creates the problem... and because it's just remotely possible that some of us who might offer (substantive) help might not be familiar with "YAWL."

    A reply falls below the community's threshold of quality. You may see it by logging in.