Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Return from a subroutine generates a negative value

by c (Hermit)
on Aug 07, 2003 at 22:04 UTC ( [id://282048]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub get_latest_avg {
      my $host = shift;
    ...
      return $avg;
                                                                          
    +          
    }
    
  2. or download this
    for my $host(keys %nodes) {
      for my $rrd(keys %rrd) {
    ...
        print $avg. "\n";
      }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found