Ask a Question related to PERL Beginners, Design and Development.

  1. #1

    Default map?

    I couldn't understand the functionality of map in PERL. Is there anybody to
    help me?

    Thanks,
    Mallik.

    Mallik Guest

  2. #2

    Default RE: map?

    perldoc map
    perldoc grep

    They both have very semilar functionality of creating a new array from
    existing one.
    >From: "Mallik" <mallikarjunk@softima.com>
    >Reply-To: <mallikarjunk@softima.com>
    >To: "Perl Beginners" <beginners@perl.org>
    >Subject: map?
    >Date: Sat, 31 Jan 2004 17:38:22 +0530
    >
    >I couldn't understand the functionality of map in PERL. Is there anybody to
    >help me?
    >
    >Thanks,
    >Mallik.
    >
    >
    >--
    >To unsubscribe, e-mail: [email]beginners-unsubscribe@perl.org[/email]
    >For additional commands, e-mail: [email]beginners-help@perl.org[/email]
    ><http://learn.perl.org/> <http://learn.perl.org/first-response>
    >
    >
    __________________________________________________ _______________
    STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
    [url]http://join.msn.com/?page=features/junkmail[/url]

    Ohad Ohad Guest

  3. #3

    Default Re: map?

    Please bottom post...

    Ohad Ohad wrote:
    > perldoc map
    > perldoc grep
    >
    > They both have very semilar functionality of creating a new array from
    > existing one.
    >
    Those need a '-f' to work....

    perldoc -f map
    perldoc -f grep
    >> From: "Mallik" <mallikarjunk@softima.com>
    >> Reply-To: <mallikarjunk@softima.com>
    >> To: "Perl Beginners" <beginners@perl.org>
    >> Subject: map?
    >> Date: Sat, 31 Jan 2004 17:38:22 +0530
    >>
    >> I couldn't understand the functionality of map in PERL. Is there
    >> anybody to
    >> help me?
    >>
    Did you read the docs? What were you looking at that you didn't
    understand? What have you tried, where did it fail or what confused you?

    If you didn't read the docs, you can always access a built-in function's
    documentation by perldoc -f <function> ...

    This is the second open ended question you have posted, a third willl
    indicate a pattern that may not get much response...

    [url]http://danconia.org[/url]


    p.s. Either Perl or perl never PERL, perldoc -q '"Perl"'
    Wiggins D'Anconia Guest

  4. #4

    Default Re: map?

    On Jan 31, Mallik said:
    >I couldn't understand the functionality of map in PERL. Is there anybody
    >to help me?
    Did you need understanding HOW to use it, or what you'd use it FOR? If
    you need help with HOW to use it, I'd ask that you first read the docs

    perldoc -f map

    and then show us code you've tried with it. If you need help with what
    you use it FOR, I can give you some advice and some pointers.

    --
    Jeff "japhy" Pinyan [email]japhy@pobox.com[/email] [url]http://www.pobox.com/~japhy/[/url]
    RPI Acacia brother #734 [url]http://www.perlmonks.org/[/url] [url]http://www.cpan.org/[/url]
    <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
    [ I'm looking for programming work. If you like my work, let me know. ]

    Jeff 'Japhy' Pinyan Guest

  5. #5

    Default Re: map?

    Mallik wrote:
    > I couldn't understand the functionality of map in PERL. Is there anybody to
    > help me?
    >
    > Thanks,
    > Mallik.
    In brief, map returns a list represneting the mapping of a function onto all
    elements of a list. The original list may or may not be affected by the
    function, depending on the syntax by which its membes are addressed.

    Joseph

    R. Joseph Newton Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139