http://qs321.pair.com?node_id=816234


in reply to Tie hash Segmentation fault

According to the documentation you are missing a comma after the third argument.

tie %s, 'Apache::Session::File', undef { Directory => '/tmp/sessions', };

Should be:

tie %s, 'Apache::Session::File', undef, { Directory => '/tmp/sessions', };

Replies are listed 'Best First'.
Re^2: Tie hash Segmentation fault
by gam3 (Curate) on Jan 08, 2010 at 12:39 UTC
    You are quite right, but it has nothing to do with the Segmentation fault. No text in a perl script should ever cause a segmentation fault.
    -- gam3
    A picture is worth a thousand words, but takes 200K.