develooper Front page | perl.perl5.porters | Postings from September 2011

Re: [perl #100190] RFE: fix sprintf to be consistent with printf andbe useful!

Thread Previous | Thread Next
From:
Eric Brine
Date:
September 30, 2011 13:15
Subject:
Re: [perl #100190] RFE: fix sprintf to be consistent with printf andbe useful!
Message ID:
CALJW-qHUm+LJ2b+LMzbfRzbp6aoV10h5z7dGSPrWG7CO_k3a2Q@mail.gmail.com
On Fri, Sep 30, 2011 at 5:37 AM, Chas. Owens <chas.owens@gmail.com> wrote:

> On Fri, Sep 30, 2011 at 04:44, Eric Brine <ikegami@adaelis.com> wrote:
> snip
> >>
> >>  open FOOBAR, "file", "mode";
> >>
> >> FOOBAR doesn't look like a simple scalar.  Doesn't need quotes, has no $
> >> ...
> >> Why do you consider it a simple scalar?
> >
> > It's a glob, which is a scalar.
>
> I could have sworn FOOBAR in that case was just a bareword'


It gets compiled to a glob, so

@args = (*FOOBAR, '>', ...);
open(@args)

would work without the prototype.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About