rickkar has asked for the wisdom of the Perl Monks concerning the following question:
in running the code below i get
amc-~$ perl test3.pl
find: -type: -f: unknown type
need help in figuring out how to remedy
find: -type: -f: unknown type
#!/usr/bin/perl use strict; use warnings; use 5.010; use LWP::Simple; use File::Find; # for traversing directory and locating a part +icular file use File::Copy; use XML::Simple; # for parsing XML use JSON::Parse; # for parsing JSON format #use Data::Dumper qw(pp); use Data::Dumper; #use Data::Dump qw(pp); my $filepath_root = '/Users/karcichr/Downloads/Elsevier/fulltext/elsev +ier/historical/' || shift @ARGV; for( my @files = qx{find $filepath_root -name 'main.xml' -type -f} ) + # step (1+2) { my $ref = XMLin( $_ ); # step (3) { die "Showing first main.xml xml: ", pp( $ref ); # dump + $ref structure, so to learn where doi/title is } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: -type: -f: unknown type
by space_monk (Chaplain) on Oct 31, 2012 at 03:01 UTC | |
|
Re: -type: -f: unknown type
by Anonymous Monk on Oct 30, 2012 at 23:37 UTC |