in reply to Net::FTP & if statement behavior

Chris,

but it is evaluating as "true." There are no "real" boolean operators types in perl. Somewhere in the docs (try perldoc perlsyn) it states that a statement is "false" if it evaluates to the null string (""), 0, "0" (string of just ascii 060), or undef. Everything else is true. Now there are some extra things when dealing with "0" but basically with Net::FTP, you could do something like this:

if( $ftp->cwd( $whole ) ) { print "Ftp command suceeded\n"; } else { print "Ftp command failed\n"; }

Update Ug. I need to more clearly read the questions. -derby