------_=_NextPart_001_01C187DA.2DCE2730
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
[please _DON'T_ post using HTML]
> Sajid Khan wrote:
>
> Hi Guys
Hello,
> I am running into an issue trying to determine whether a file exists
> when the name varies.
> The file has a name that always begins with "vista90n" and so I tried
> the following code ...
>
> if (-e "/home/skhan01/perl/file_tests/vista90n*") {
if ( glob "/home/skhan01/perl/file_tests/vista90n*" ) {
> print ("Files exist!\n");
> }
>
> apparently wildcards don't work in this way using the "-e" switch.
> Does anyone know how
> to use wildcards with the "-e" switch or do I have to create a list of
> file names and parse them?
> I even tried using the "\*" but no dice ....
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]