define alyas returns a false

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
why does
   if (defined ($page))
      print "page defined";
    else print"page not defined";


page not define

Re: define alyas returns a false wrote:
Quoted text here. Click to load it

 From the manual:

"defined Checks whether a given named constant exists"

$page is not a constant, to the return value is correct.  For variables,
use isset().

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline