Tom Phoenix wrote: > On 2/28/07, Bill Jones <[EMAIL PROTECTED]> wrote: > > ># Out of curiousity -- why does line 2 get printed first? > > >open(o,"|cat");print o "I think I am 1st? ^L^M"; > >$_ = "LINE 2: Jvtu bopuifs Pfsm ibdlfs ..."; y/a-z/za-y/; print > > Buffering: cat can't give all of its output until you finish writing > to it by closing filehandle o. Hope this helps!
What's the proper way to handle buffering? I mean, to prevent it. -- David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/ Todo lo que consumes te puede consumir. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/