Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Anonymous Hash in Constructor

by chromatic (Archbishop)
on Oct 19, 2012 at 05:01 UTC ( #999869=note: print w/replies, xml ) Need Help??


in reply to Re: Anonymous Hash in Constructor
in thread Anonymous Hash in Constructor

Only if the named hash persists outside of the constructor.


Improve your skills with Modern Perl: the free book.

Replies are listed 'Best First'.
Re^3: Anonymous Hash in Constructor
by sundialsvc4 (Abbot) on Oct 19, 2012 at 13:49 UTC

    Which, of course, would not make sense to do.   The constructor’s purpose is to return a new unique instance of a blessed object as its return value.   So, the only “debate” here is whether, within the body of that constructor, the hash that is to be returned is specified anonymously or not.   And, it makes utterly no difference one way or the other to Perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999869]
help
Chatterbox?
[james28909]: i guess i should have done it in perl. i bet it woulnt have taken me 5 hours to figure out haha
[choroba]: In the end, I was able to upgrade Perl from 5.8.3 to 5.22 and install Net::SFTP::Foreign , at least for the task involved
[james28909]: what would be the best way to capture that stream with perl? ffmpeg args -rtp rtp://127.0.0.1?
[LanX]: if I was forced to talk about all security risks I encountered oO
[james28909]: if i did that with ffmpeg, i could then listen on the port with perl right?
[LanX]: one of my clients filtered a menu linking to Web pages according to user rights. .. but he didn't secure the access to those unlisted pages

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-05-22 21:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?