Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Decimal Array range

by bart (Canon)
on Dec 22, 2010 at 12:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://878493]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found