CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help:
Win32 ActiveState perl adds return to new line

 



ares09x
New User

Aug 8, 2005, 3:10 AM

Post #1 of 3 (3954 views)
Win32 ActiveState perl adds return to new line Can't Post

Greetings,

I can't find a way to get ActiveState 5.8 perl to only output a newline character - this would be critical if a hex 0a character were in a binary file I was processing - whenever I output just a 0x0a, perl (or the Win32 interface) insists on putting a return character ahead of the new line.

Any ideas how to avoid this?

Thanks,

Relative perl newcomer ...


davorg
Thaumaturge / Moderator

Aug 8, 2005, 5:18 AM

Post #2 of 3 (3953 views)
Re: [ares09x] Win32 ActiveState perl adds return to new line [In reply to] Can't Post

Try using binmode on your filehandle before you write any data to it.

Also see "perldoc perlport" for more details.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


ares09x
New User

Aug 8, 2005, 5:32 PM

Post #3 of 3 (3950 views)
Re: [davorg] Win32 ActiveState perl adds return to new line [In reply to] Can't Post

Thanks, Dave, wonderful reply, that's it! Smile

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives