Skip to content

[doc] Add (ord) example to map() document #23404

Closed as not planned
Closed as not planned
@jidanni

Description

@jidanni

Where

perlfinc
Description

perldoc -f map

shows

 my @chars = map(chr, @numbers);

Maybe this also could be mentioned:

$ perl -wle 'for(qw/A B C/){print map((ord)-64,$_)};'
1
2
3

Or maybe something like it is mentioned already.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions