Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8688711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:26:44+00:00 2026-06-12T23:26:44+00:00

my @c= map { my $v=$_; map {$_ * $v } @m } @a;

  • 0
my @c= map {
        my $v=$_;
        map {$_ * $v } @m
} @a;

Is using map like this, a good practice? Why not?
If not, what are other ways?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:26:45+00:00Added an answer on June 12, 2026 at 11:26 pm

    I cannot answer whether or not it is good practice. In general there are a lot of situations in which I use nested maps a lot. It’s short, it’s concise and to the point.

    However, such nested maps are always in danger of growing just slightly too big and unwieldy in which case they become harder to read than they have to (which list does $_ refer to in which case!?). So use them, yes, but use it with caution — just like all other similar things that make Perl so terse and expressive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to load google map geo-location not using kml. Like this site: http://www.housingmaps.com/
I have this table structure and would like to map it using Fluent Hibernate
When we define routes in routes.rb using the name like map.some_link .We can use
i'm using rails3.0.10 def districts @names = Node.where(name like ?, %#{params[:term]}%).limit(5).map(&:name) respond_to do |format|
I am using <p:graphicImage> like below: <div id=mapp> <h3>Country Map</h3> <p:graphicImage id=city value=#{countryPages_Setup.countryMap} width=250
I'd like to know, How Could I map (with fluent nhibernate) this model: public
how would I map this relationship in NHibernate (I'm using the simple idea of
My program basically looks like this: using(XmlReader reader = XmlReader.Create(File.Open(path, FileMode.Open, FileAccess.Reader, FileShare.Read)) {
For parsing JSON like this twitter API users/show response I've been using Jackson and
I'm creating a map using Google Fusion Tables. It has several layers that are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.