Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Convert msg files to mime

by wind (Priest)
on Jun 28, 2011 at 18:43 UTC ( #911831=note: print w/replies, xml ) Need Help??


in reply to Convert msg files to mime

Your problem is that the script is made to only accept literal file names instead of file globs?

If so, just add a filter to the @ARGV loop to translate any globs into a list of files like you already demonstrated in your second bit of code:

foreach my $file (map {/\*/ ? glob($_) : $_} @ARGV) {

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://911831]
help
Chatterbox?
[RonW]: thanks
[LanX]: I thought MST perl was obvious ;-)
[RonW]: I have so much accumulated in my memory that finding the right item at a given moment often fails

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-08-18 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (310 votes). Check out past polls.

    Notices?