in reply to Re: XML::Twig and file encoding
in thread XML::Twig and file encoding
getting an error, maybe I coded something wrong here. (Running on Win7 BTW - should've mentioned.)
Error open (<:unix) on 'twiggy-WHAT.xml': No such file or directory at C:\working\scripts\ifx-make-conrefs\twiggy.pl line 9.my code
#!/usr/bin/perl -- use Path::Tiny qw/ path /; use Data::Dump qw/ dd /; my $infile = 'twiggy-test.xml'; my $outfile = 'twiggy-WHAT.xml'; dd( path( $infile )->slurp_utf8 ); getTwiggy( $infile , $outfile ); dd( path( $outfile )->slurp_raw ); sub getTwiggy { ## minimal demo of Twig not what you want } __END__
I do get my XML printed to screen.
thanks for looking at this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML::Twig and file encoding
by Anonymous Monk on Aug 01, 2014 at 02:25 UTC | |
by slugger415 (Monk) on Aug 01, 2014 at 17:08 UTC | |
by slugger415 (Monk) on Aug 01, 2014 at 17:11 UTC | |
by Anonymous Monk on Aug 02, 2014 at 08:30 UTC | |
by slugger415 (Monk) on Aug 02, 2014 at 16:09 UTC | |
by slugger415 (Monk) on Sep 18, 2014 at 14:19 UTC | |
|