in reply to Regular Expression Pattern Search Problem

I believe your problem is that you are not attempting to match the line from the file, but rather the filename itself.

Try something like this instead, to read and parse lines from a file:

use FileHandle; my $fh = new FileHandle; open($fh, "<", $file) or die "Unable to open file '$file' ($!)\n"; while (my $line = <$fh>) { chomp $line; if ($line =~ /(<IMG.*?BR>)...(Figure\d*)/i) { # You got a match } }

@ARGV=split//,"/:L"; map{print substr crypt($_,ord pop),2,3}qw"PerlyouC READPIPE provides"