perl code to search existing files

Hi,
I have a string like:

read_lib {$lib/a.lib $lib/b.lib $lib/c.lib ..... }

Now, I want to search existence of all these *.lib files in $lib directory.
Please suggest- how to do it.

Thanks
-rkg

Use "if" with "-e" to check to file existence:

if (-e $your_file) {
# commands to execute
}

Thanks Thomas!