Opened 3 years ago

Closed 3 years ago

#1314 closed defect (fixed)

syntax checker cannot deal with abs_path($0) ?

Reported by: szabgab Owned by:
Priority: major Milestone:
Component: Syntax Checking Version: 0.91
Keywords: Cc:

Description

Having the following code in a script trips the syntax checker.

my $lib;
BEGIN {
	$lib = File::Spec->catdir( dirname(dirname abs_path($0)), 'lib');
}
use lib $lib;

The error indicated that -: No such file or directory.

I think this means the syntax checker is using -e which is not good for the above code.

Using r15825 on Windows 7

Change History (1)

comment:1 Changed 3 years ago by azawawi

  • Resolution set to fixed
  • Status changed from new to closed

Already fixed in trunk :)

Note: See TracTickets for help on using tickets.