in reply to Re: What did you have to Unlearn
in thread What did you have to Unlearn
Technically, the most english way of writing the code (that actually works) is:$ftp->cd($dir) or ($ftp->mkdir($dir) and $ftp->cd($dir));
If you don't mind making the standard case having one extra file system access and the non-standard case having one less access.$ftp->mkdir($dir) and $ftp->cd($dir)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: What did you have to Unlearn
by Anonymous Monk on Jun 09, 2001 at 00:12 UTC |