Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Before uploading my module...

by strat (Canon)
on May 23, 2007 at 08:56 UTC ( #616960=note: print w/ replies, xml ) Need Help??


in reply to Before uploading my module...

I'd set the filehandle to binmode to make it work under Win32 as well, slurp the file, and use open with three params to prevent filenames like ">xyz.jpg" (but well, you caught that in the -e $filename), e.g:

unless( open( my $fh, '<', $cache ) ) { warn "Thumbnail.pm: $! opening $cache\n"; } else { local $/; binmode $fh; print <$fh>; };

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"


Comment on Re: Before uploading my module...
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://616960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-09-20 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (156 votes), past polls