Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: How to return values from a hash?

by perl-diddler (Hermit)
on Mar 30, 2013 at 03:40 UTC ( #1026235=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub _Var ($$$;$) {                          # Wrkhorse code for manu
    +fctrd Vars
    #note $p->obj, $vn=varname, $wa=wantarray val
    ...
            my $subvar=$arg;                 ## 1 var w/hash is is a key
            $p->{$vn}{$subvar}=$_[0] if @_;       ## another?  =>assign va
    +lue
            return $p->{$vn}{$subvar};  <- returns has here.
    
  2. or download this
      sub by_mp(;$) { my $map = shift; my $c = ref $map || $map;
       ...init...
    ...
        $arg_lvh->fs_mp($arg);
        return $arg_lvh;
      }
    
  3. or download this
      sub lvm_BaseDiff_Lvh_4_Base_opt_mp ($;$) {
        my $lvm = shift;
    ...
        $bdiff_lvh->fs_mp($lv_mp) unless $bdiff_lvh->fs_mp;
        $bdiff_lvh->fs_type_name($base_lvh->fs_type_name) 
          unless $bdiff_lvh->fs_type_name;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026235]
help
Chatterbox?
[holli]: i don't know. meat and tomatoes don't belong anywhere near each other in my book
[holli]: unless the meat is in sausage form and the tomatoes being ketchup, that is
[Discipulus]: no ragł? i'm sorry..;=)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2017-11-22 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (316 votes). Check out past polls.

    Notices?