in reply to Re: File Processing for YAWL...
in thread File Processing for YAML...
Sorry, the rest of the code was cut off....use File::Slurp; use YAML::XS; use Data::Dumper; print Dumper Load scalar read_file('output.txt');
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#!/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 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: File Processing for YAWL...
by ww (Archbishop) on Sep 08, 2010 at 22:31 UTC | |
|