Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: attachment logging

by Bass-Fighter (Beadle)
on Dec 18, 2008 at 12:30 UTC ( [id://731238]=note: print w/replies, xml ) Need Help??


in reply to Re^2: attachment logging
in thread attachment logging

and where in my code must I set this?, srry, I'm still a rooky in perl. just 3 weeks of experience with this...

Replies are listed 'Best First'.
Re^4: attachment logging
by oko1 (Deacon) on Dec 18, 2008 at 12:55 UTC

    Corion's suggestion of adding the "binmode" sub to your code is not unreasonable, but if you're new to Perl, the simplest answer for you is just to update the IO::File module. If you've never done that, modern Perls provide a script that makes it easy - it's called 'cpan'. Assuming that you're on some sort of *nix (rather than Windows) and that you have access to root privieleges, all you need to do is run 'cpan' as root at your command line, and follow the setup prompts; once you're done with the setup, just type 'install IO::File' and that'll take care of it.

    Just for completeness' sake - on older versions of Perl, where there's no "cpan" script, you'd type "perl -MCPAN -eshell" (again, as root) to do essentially the same thing. This also works on modern versions.


    --
    "Language shapes the way we think, and determines what we can think about."
    -- B. L. Whorf
      okee I got it. it works:D I want to thank you all very much:D

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-26 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found