Quickly finding a quarantined message - was: RE:[Mimedefang]action_discard

Jan-Pieter Cornet johnpc at xs4all.nl
Wed May 9 17:26:38 EDT 2007


On Wed, May 09, 2007 at 04:00:39PM -0400, Cormack, Ken wrote:
> > Great idea!  One enhancement is I think you might want to call it as 
> > get_quarantine_dir() otherwise I think perl will pass @_ from your current
> > scope.  Currently, the function takes no params but who knows next week...

Err... this is not true. While get_quarantine_dir(); is preferred over
get_quarantine_dir; they both mean exactly the same: call the function
with an empty argument list. Using brackets just makes it clearer to
the read that it's a function call.

If you want to pass the current arguments in @_, you'll have to
explicitly call it as &get_quarantine_dir; (note: no brackets).

See:
    perldoc -q '&foo'
    man perlsub

-- 
Jan-Pieter Cornet <johnpc at xs4all.nl>
!! Disclamer: The addressee of this email is not the intended recipient. !!
!! This is only a test of the echelon and data retention systems. Please !!
!! archive this message indefinitely to allow verification of the logs.  !!



More information about the MIMEDefang mailing list