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)
In reply to Re: What did you have to Unlearn
by tedv
in thread What did you have to Unlearn
by seeker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |