Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: A regex on the same content fails and works, with conditions

by hacker (Priest)
on Oct 22, 2007 at 01:59 UTC ( [id://646345] : note . print w/replies, xml ) Need Help??


in reply to Re: A regex on the same content fails and works, with conditions
in thread A regex on the same content fails and works, with conditions

I added binmode, because I wanted to be sure the data coming off the socket was EXACTLY the same as what was expected.

The regex fails in the first case, whether I use binmode or not, in write_file().

  • Comment on Re^2: A regex on the same content fails and works, with conditions