Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: $foo->bar = 14;

by Aristotle (Chancellor)
on Dec 29, 2002 at 20:30 UTC ( #222952=note: print w/replies, xml ) Need Help??


in reply to $foo->bar = 14;

As shotgunefx pointed out, there's unfortunately no way to constrain the value assigned in anyway, neither before nor after the assignment. That renders the attribute nearly useless as far as I'm concerned.. a pity, since it'd be a lovely way to offer a bit of syntactical sugar. You could even support both the ->bar("baz") and the ->bar = "baz" style at the same time, but that's a moot consideration as is. :(

Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://222952]
help
Chatterbox?
[Corion]: (one of my scripts simply catches high amounts and I phone people making that trade, ideally before the payment is due)
[Corion]: The sad thing is that my script sits at the end of the pipeline and can only look at the payments due today or tomorrow basically, while there are many more systems further up in the pipeline
[GotToBTru]: better late than never, I guess
[Corion]: GotToBTru: Sure - there is a long and sad story of many frantic cleanups that led us to implement this notification ;)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-03-29 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (347 votes). Check out past polls.