in reply to Sending variables to subs
use strict; use diagnostics; use CGI; #Create an instance of the object my $CGI_object = new CGI; # Set a new varible for easier manipulation. my $HOME = undef; $HOME = $CGI_object->param('home'); # if $HOME is not defined ==[ (!($HOME)) ]== OR ==[ || ]== # if $HOME is not a directory ==[ (!($HOME)) ] ==, then # do the inerror thing. if( (!($HOME)) || (!(-d $HOME)) ) { &inerror("We couldn't find '$HOME' in the path."); }
|
|---|