[Dirvish] 1.3.2-r657 warnings

James Stanley james at incoherency.co.uk
Mon Oct 15 09:41:02 UTC 2012


On Mon, 15 Oct 2012 11:38:14 +0200
Papp Tamas <tompos at martos.bme.hu> wrote:

> On 10/15/2012 11:05 AM, Dave Howorth wrote:
>     482          if ( $A{dir} != /^:/ )    # Eric M's BadShellCmd fix
> 
> Again, this is the message:
> 
> Use of uninitialized value $_ in pattern match (m//) at 
> /usr/lib/perl5/Dirvish.pm line 482.
> Argument "/data/backup/access/2012-10-15--11-34/tree" isn't numeric
> in numeric ne (!=) at /usr/lib/perl5/Dirvish.pm line 482.
> Use of uninitialized value $A{"shell"} in string at 
> /usr/lib/perl5/Dirvish.pm line 491.

One can infer from this that the line should read:
  if ( $A{dir} !~ /^:/ )
"!=" is numeric inequality comparison, "/^:/" is a regex, and "!~" is
regex non-match comparison.

Hope that helps,

James Stanley


More information about the Dirvish mailing list