Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Tie::Static take 2

by petral (Curate)
on Jul 16, 2001 at 08:50 UTC ( #96957=note: print w/replies, xml ) Need Help??

in reply to Tie::Static take 2
in thread Tie::Static

why can't
(static my $x) = 'yz';
work. You have to get the parens right. But at least it's useful.
update Nevermind. you'd have to back into the unless defined $x bag all over again. (static my $x ) ||=  ?


Replies are listed 'Best First'.
Re (tilly) 2: Tie::Static take 2
by tilly (Archbishop) on Jul 16, 2001 at 09:07 UTC
    Actually I had simpler reasons for avoiding that.

    The first is that I didn't want to depend on experimental 5.6 features without good reason.

    The second, and more important, is that I tried to figure out what it would look like to declare and initialize a list of things that included arrays and hashes. It did not look pretty.

    Anyways I think that the API that I came up with is both simple to explain and pretty flexible. Plus it works on 5.005. :-)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://96957]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-12-10 11:34 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (39 votes). Check out past polls.