Opened 9 years ago

Closed 9 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:


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

my $lib;
	$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 9 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.