Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Decimal Array range

by bart (Canon)
on Dec 22, 2010 at 12:12 UTC ( #878493=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $x = 100;
    my @y = (10, 20, 30);
    ...
    }
    local $" = ", ";
    print "\$x = $x\n\@y = (@y)\n";
    
  2. or download this
    # or:
    foreach my $n ($x, @y) {
        $n *= 2;
    }
    
  3. or download this
    map { $_ *= 2 } $x, @y;
    
  4. or download this
    grep { $_ *= 2 } $x, @y;
    
  5. or download this
    sub double {
        foreach(@_) {
    ...
    }
    
    double($x, @y);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-08-20 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls