rocknbil - 4:15 pm on Feb 14, 2012 (gmt 0)
If the file is not huge, another way is to open the file, store all lines in a scalar $tmp
$tmp = param('name') . "\n" . $tmp;
I generally store the original $tmp in a backup first to be (a little bit) safer about it.