in reply to Strange error from Response.pm
While not being able to answer your real question, I'll point out that your grep regex should probably be like this:
The difference is in the period being treated as a literal period (your version treats it as a wildcard), and having the the set of alternative extension strings match only at the end of a link string (your version only matchs $ext3 (.txt) at the end of the string, and the others can match anywhere in the string).my $exts = join( "|", qw/pdf doc ps txt/; @links = grep( !/\.(?:$exts)$/, @links );
(updated to fix grammar)
|
|---|