William Torrez Corea <willitc9...@gmail.com> writes:

> Mean: !~ /\*/

!~ is "not matching the following regular expression"
/\*/ is a regular expression matching a star (*).

So the condition is true if $extension contains no star.

Regular expressions is the heart of Perl, you may want to read a bit
about it :)

Best regards,

Olivier

> I have the following code:
>
> if ($extension !~ /\*/) {
> $backup = $ARGV . $extension;
> }

-- 

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to