in reply to Segmentattion fault
One of my quick and dirty methods is to print the file and line number after each executable line:
$x = 14; print STDERR __FILE__ . ':' . __LINE__ . "\n"; [download]
-QM -- Quantum Mechanics: The dreams stuff is made of