in reply to passing a scalar to a function
You could do something like this:
sub mycheck { my $db = shift || ""; } # or sub mycheck2 { my $db = @_ ? $_[0] : ""; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing a scalar to a function
by linuxer (Curate) on May 19, 2008 at 11:07 UTC | |
|
Re^2: passing a scalar to a function
by nsupathy0 (Initiate) on May 19, 2008 at 13:02 UTC |