"Ling F. Zhang" wrote: > > Is is possible to pass a regular express as the > parameter of an argument...
Yes. You can use the qr// operator to store a regular expression in a scalar. > 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.../ search( $string, qr/^T.../ ); sub search { my ( $string, $regex ) = @_; $string =~ /$regex/; } John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]