You may be "suffering from buffering." Try switching off output buffering by adding the line $| = 1 somewhere before the print statement.
the lowliest monk
In reply to Re^3: directory exists
by tlm
in thread directory exists
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |