in reply to Storing regex values in an array and processing the array
Hi diamondsandperls,
Just some thoughts:
With this: (From your OP),
You are creating an array of just one element. Which of course would be a better if you just use a scalar variable, like so:my @patterns = ( qr/Record contentId\=\"\d+\"/ );
and then use the modified code print {$final_fh} /$pattern/, "\n"; by choroba.my $patterns = qr/Record contentId\=\"\d+\"/;
|
|---|