Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Sum of N elements in an M element array

by abhay180 (Sexton)
on Feb 02, 2020 at 08:02 UTC ( [id://11112267]=note: print w/replies, xml ) Need Help??


in reply to Re: Sum of N elements in an M element array
in thread Sum of N elements in an M element array

Thanks Marshall. This helps. Never a great user of glob() function , will try it out.
  • Comment on Re^2: Sum of N elements in an M element array

Replies are listed 'Best First'.
Re^3: Sum of N elements in an M element array
by Marshall (Canon) on Feb 02, 2020 at 08:24 UTC
    This glob thing is a bit weird.
    Good Luck!
    Consider also:
    #!/usr/bin/perl use strict; use warnings; my @combos = glob "{a,b,c}{1,2}"; print "@combos\n"; __END__ Prints: a1 a2 b1 b2 c1 c2

Log In?
Username:
Password:

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

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

    No recent polls found