> Thanks. That worked great. Next time I will post the entire code,
> sorry about that. 

> I have a question about:
>  return if $file !~ /\.html?$/i;

> I do not understand the use of ?$. I thought ? means one or more
> times and $ means end of line.

? actually means 0 or 1 times.
* means 0 or more times
+ means 1 or more times

> How do I make sure that html, htm, HTML, and htm files
> are all caught. I did it really primitively below:
>
>      if ($File::Find::name =~ /\.htm|\.HTM|\.html|\.HTML/)
>
> but how do I denote 1) all of the following characters can be
> either uppper or lower case, and 2) they either can or don't
> have to have an L or an l and the end?

As the first expression shows! The trailing i after the slash means ignore
case. The ? on the l means 0 or 1 "ell" characters (read this carefully -
one and ell look the same) and then of course this pattern must be found at
the end of the string.
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to