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!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to