in reply to A conversation with a C programmer

Let us hope his $target directory never contains whitespace, or your replacement would fall down and go boom.

Update: Also, let us further hope his process_new_file can handle the fact that your new version is now passing the $target along with the file basename.

Replies are listed 'Best First'.
Re^2: A conversation with a C programmer
by Anonymous Monk on Mar 15, 2006 at 18:04 UTC
    Let's also hope that he's not running an old version of perl, either. On old systems, glob() (and the diamond glob operator) called the external shell program csh, which overzealous sysadmins were prone to deleting when they "upgraded" to their favourite shell.

    As I understand it, glob() still calls File::Glob; and a bug in the handling of tags is why I can't make debug mode work with the old perl5.6.1 scripts we have on our system. *sigh*. In other words, using glob() has always been a risky proposition.

    --
    Ytrew