--- Larry Wall <[EMAIL PROTECTED]> wrote:
> While that probably works, I think better style would be to use a
> comma:
>
> my $fh = open ">$filename", :excl;
>
> That explicitly passes :excl to open as a term in a list rather
> than relying on the magical properties of :foo to find the preceding
> operator adverbially when used where an operator is expected.
Hmm. If I must use the comma, I think I'd prefer a constant in this
scenario:
my $fh = open ">$filename", open::exclusive;
Is it reasonable to use package:: as a prefix to a block to change the
default namespace:
{ package open; exclusive + rw; }
becomes
open::{exclusive + rw}
which then lets me say:
my $fh = open ">$filename", open::{exclusive + rw};
=Austin
=Austin