in reply to Re: Passing Regex Pattern in Subroutinein thread Passing Regex Pattern in Subroutine
I don't understand why you had to use 'map' to pass the regular expression
Is it because when you run get_data( map { "^$_" @ids } ), it is like doing get_data( "^john" ) and that is being passed to the subroutine?
get_data( '^john' , '^james' ); [download]