in reply to Re^14: Perl vs C
in thread Perl vs C
I would say that after a quick glance, glob() is a very bad idea. I've been in "glob hell" a few times and this is a very bad place to be! Even amongst *NIX platforms there are variances and when I started doing code for WinX platforms, this became even nastier! I don't if there is a FAQ about this, but the portable way is to open a dir, read it, use grep to get what you want. Glob() is easy, but not portable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^16: Perl vs C
by JavaFan (Canon) on Mar 16, 2009 at 18:03 UTC | |
by Marshall (Canon) on Mar 16, 2009 at 18:14 UTC | |
by Corion (Patriarch) on Mar 16, 2009 at 18:17 UTC |