Matches all $file except .tar and .tar.gz endings.
if ( $file !~ # scalar $file tested for not matching /\.tar # an ending of .tar (\.gz)? # followed by an optional .gz $ # at the end of the name /x)
In reply to Re: meaning of if ($file !~ /\.tar(\.gz)?$/)
by hdb
in thread meaning of if ($file !~ /\.tar(\.gz)?$/)
by filipebean
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |