in reply to Re^2: extracting name & email address
in thread extracting name & email address
Is this how to approach this ?
Maybe
Consider
Main( @ARGV ); exit( 0 ); sub Main { my @files = RecursivePathSearch( $path ); for my $file ( @files ){ SomethingHere( $file ); } } sub RecursivePathSearch { my( $path ) = @_; use File::Find::Rule qw/ find rule/ return rule( file => not_name => [ '*.pl', ], )->in( $path ); } sub SomethingHere { my( $file ) = @_; use Path::Tiny qw/ path /; use Email::Address; my $stuff = path( $file )->slurp_raw; return Email::Address->parse( $stuff ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: extracting name & email address
by peterr (Scribe) on Feb 23, 2015 at 09:08 UTC | |
by Anonymous Monk on Feb 23, 2015 at 10:48 UTC | |
by Anonymous Monk on Feb 25, 2015 at 11:22 UTC | |
by peterr (Scribe) on Mar 03, 2015 at 01:02 UTC | |
by Anonymous Monk on Mar 03, 2015 at 02:22 UTC |