glob is not that portable (BSD,DOS,Windows,SYS V), it is a mess. I prefer readdir and grep over glob.
In what respect? As long as you are using forward slashes for your pathes (in particular important if you are on Windows and dealing with UNC pathes), the fine thing about glob is that it works the same on all platform, since it doesn't rely on platform specific issues. At least this is true for any "reasonably recent" Perl; I darkly remember that for very early versions of Perl, glob used the shell mechanism on some platforms, which led to compatibility problems ... but this was long time ago.
In reply to Re^3: Writing to file...
by rovf
in thread Writing to file...
by perl_n00b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |