Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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
            return $p->{$vn}{$subvar};  <- returns has here.
  2. or download this
      sub by_mp(;$) { my $map = shift; my $c = ref $map || $map;
        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;
          unless $bdiff_lvh->fs_type_name;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026235]
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: (8)
As of 2015-08-29 19:47 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (344 votes), past polls