in reply to OK to always return a value?

You can return values from a subroutine invoked in a void context, but Perl shoves them into /dev/null, so be sure you perform regular maintenance on your machine to empty /dev/null.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


P.S. Kidding, of course.

Replies are listed 'Best First'.
Re^2: OK to always return a value?
by doran (Deacon) on May 09, 2005 at 03:05 UTC
    No prob, I have a crontab entry that already does this.

    1 * * * * perl -e "push(@b,glob) for @ARGV ;END{unlink $_ for @b}" /d +ev/null/*
    Of course this misses subdirectories. I just do them manually.

    :)