Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Calling a class constructor as a function on input arguments

by cwest (Friar)
on Jul 21, 2000 at 18:26 UTC ( #23583=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $os = eval "\\&FTP::Session::${^O}->new";
    my %constor = ( $^O => $os );
    
  2. or download this
    sub new { bless {}, shift };
    # which is equivalent to this
    ...
    # Bless could actually be:
    bless {}, 'Package::Name';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-07-23 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (152 votes), past polls