the author of the earthquakes article said "this will only work on *nix style systems with gnuplot installed." but i can run it on the windows xp perl 5.10 gnuplot 4.5 beta , only i can't exit by clicking 'x' but can exit by ctrl-c.
the second example works well.