michael99 has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am trying to search files which not equal "user_ABC_*.pdf" * could be anything while $user_input is specified by user. May I know how should I define the naming?
my $user_input = "user"; opendir my $dh4, $doc_dir or die "can't open directory:$!"; while (my $entry3 = readdir $dh4){ if($entry3 ne $user_input."_ABC_"*.pdf{ ...};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: searching files
by 1nickt (Canon) on Mar 05, 2020 at 04:04 UTC | |
Re: searching files
by AnomalousMonk (Archbishop) on Mar 05, 2020 at 09:23 UTC | |
Re: searching files
by Marshall (Canon) on Mar 05, 2020 at 05:50 UTC | |
Re: searching files
by clueless newbie (Curate) on Mar 05, 2020 at 14:59 UTC | |
Re: searching files
by Anonymous Monk on Mar 05, 2020 at 04:08 UTC | |
by michael99 (Acolyte) on Mar 05, 2020 at 06:24 UTC | |
by Anonymous Monk on Mar 05, 2020 at 06:46 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |