Re: What is the mean of the following syntax?
Olivier <[email protected]>
| Newsgroups | gmane.comp.lang.perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
William Torrez Corea <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/