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

Re: Problem emulating built-ins like map and grep.

by Aristotle (Chancellor)
on Jan 22, 2003 at 14:28 UTC ( [id://229017]=note: print w/replies, xml ) Need Help??


in reply to Problem emulating built-ins like map and grep.

It's a parsing issue. You'll find this works:
map2 sub { print "$a $b" }, qw[A B C D];
Update:
$ perl -v

This is perl, v5.6.1 built for i386-linux

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: Problem emulating built-ins like map and grep.
by jsprat (Curate) on Jan 22, 2003 at 18:50 UTC
    With ActiveState Perl 5.6.1 build 633 on Win2K, this doesn't work. It compiles fine, but map2 just receives an empty list as the second argument.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found