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

Formatting dynamic method names

by clinton (Priest)
on Oct 10, 2009 at 13:29 UTC ( #800455=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
        $object->set_date( $hash{ date } );
    
  2. or download this
    
    Method 1:
    ...
        $object->${ \"set_$_" }( $hash{ $_ } );
    }
    
  3. or download this
    
        $object ->${ \"set_$_" }( $hash{$_} );
    
  4. or download this
    
        #!/usr/bin/perl
    ...
                  }
        );
    
  5. or download this
    
                     Rate    deref temp_var
        deref    176991/s       --     -18%
        temp_var 215054/s      22%       --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-09-23 03:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls