develooper Front page | perl.beginners | Postings from July 2003

regular expression as argument

Thread Next
From:
Ling F. Zhang
Date:
July 10, 2003 17:47
Subject:
regular expression as argument
Message ID:
20030711004658.2744.qmail@web14204.mail.yahoo.com
Is is possible to pass a regular express as the
parameter of an argument...

for example (a stupid one):

I want to write a function search such that when I
call:
search ($string,/^T.../)

that basically just do
$string =~ m/^T.../

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About