|
|
| Just another Perl shrine | |
| PerlMonks |
Map not giving me what I thought it would.by the_0ne (Pilgrim) |
| on Jun 02, 2001 at 08:39 UTC ( #85155=perlquestion: print w/ replies, xml ) | Need Help?? |
|
the_0ne has asked for the
wisdom of the Perl Monks concerning the following question:
Sorry for the newbie-ish question monks, but I'm having trouble understanding the results I'm getting using map. This...
...when I run './cmd_line_args.pl -foo -bar' gives me... Which is what I would think it should, but then why does this not work...
This gives me... I'm not understanding why the first code snippet works but the next code snippet, which the only difference is setting the results of the map to an array, gives me scalar output. Again, sorry for the newbie-ish question. I looked through other posts, examples using map and it doesn't look like I'm doing anything different. There has to be a very simple explanation, I'm just not seeing it though. Thanks again monks.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||