Nope! Not true.
That is because in the character class [A-Za-z0-9] there is no underscore, and Preceptor assumed that would be equivalent to \w .
\w , however, is [A-Za-z0-9_] and thus includes the underscore.
Cheers, Sören
(hooked on the Perl Programming language)
In reply to Re^3: how to check whether a particular word exists in filename
by Happy-the-monk
in thread how to check whether a particular word exists in filename
by learner@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |