Al Green wrote:

> I am new to Perl and I would like a scrip

People will gladly point you towards modules that can assist you, but do not
look here for completed scripts, please.

> t that I can uxse to search for
> text pattern with a file or files as a wild card or with a given extension.

There are modules, such as File::Find, that can assist in this chore.  There
are also functions such as readdir that are useful.  To construct matching
patterns, you may want to look into regular expressions, as well as
file-globbing.

perldoc File::Find
perldoc -f readdir
perldoc perlre

>
> Please reply of list.

Generally, this is not going to happen.  People invest time and energy into the
problem-solving that goes into our replies.  We do it for the genral benefit of
our learning community.  Also, by replying on-list, we reduce the likelihood
that example code we post will be pasted directly into someone's homework
assignment.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to