in reply to Not printing when expected.
instead of what you have:print "\n $station \n";
you would see the result immediately because printing to the terminal is line-buffered (meaning that, by default, it is printed as soon as a newline character is printed out). Printing to a file is a different story, it will be delayed by default, but this is very well explained in Mark-Jason Dominus' article referred to by no_slogan.print "\n $station";
|
|---|