http://www.perlmonks.org?node_id=378825

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

In my script, I use:
my $page = $cgi->param("page") or "login";

But it always uses $cgi->param("page"), even if the return value is undef. I remember using this in another program and having it work . . . what am I doing differently? Isn't this supposed to work?

Thanks.