Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I' am a student from Belgium and I am making a these over Perl. I was a trainee for 2 months in a company. We used the following $session->{'cgi:duur'}to store data in to the database. But I can't find anything like this "$session->{'cgi:duur'}" on the Internet. I hope someone can tell me more about it. Thanks

Replies are listed 'Best First'.
Re: Perl session
by Tanktalus (Canon) on Mar 30, 2005 at 17:40 UTC

    More context would be needed than is given to be sure, but I'll hazard the supposition that $session was a CGI::Session or Apache::Session or similar object which automatically saves its data to a database during cleanup. Although writing directly to the underlying object rather than using the methods is a bit suspect.

Re: Perl session
by Mugatu (Monk) on Mar 30, 2005 at 18:48 UTC

    The code you have shown is how you access elements in hash references in Perl. It is the same for every hash reference, and that does not tell us much. The important part of the code is how that hash reference is created. Unless you can remember that part, there's not much we can do but guess.

    Update: Tanktalus and Joost are demonstrating their excellent guessing skills, but my point still stands. It's very possible that they are right, but we don't really know for sure.