M
Mark Richards
When I run the following piece of code:
if !defined( $ARGV[ 1 ] ) {
if !defined( $ARGV[ 0 ] ) {
$mypath = '\\'; }
mydepth = 1; }
then I am getting the following error:
syntax error at du_cb.pl line 19, near "if !"
Execution of du_cb.pl aborted due to compilation errors.
Where is the syntax error? Even if I replace ' by " it does not work.
As you can imagine I want to assign default values if I don't pass special, individual parms.
How can I do this otherwise?
Mark
if !defined( $ARGV[ 1 ] ) {
if !defined( $ARGV[ 0 ] ) {
$mypath = '\\'; }
mydepth = 1; }
then I am getting the following error:
syntax error at du_cb.pl line 19, near "if !"
Execution of du_cb.pl aborted due to compilation errors.
Where is the syntax error? Even if I replace ' by " it does not work.
As you can imagine I want to assign default values if I don't pass special, individual parms.
How can I do this otherwise?
Mark