Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
Menu
Map function with regular expression : map « System Functions « Perl
Perl
System Functions
map
Map function with regular expression
@a = qw(This is a test); @b = map/^(\w{4})/, @a; print
"@b"
;
Related examples in the same category
1.
Using Map function