http://www.perlmonks.org?node_id=1007995


in reply to How to get full path name in windows?

Close...
#!/usr/bin/perl use 5.014; # use 5.014 is effectivly the same as use +strict. Do it. use File::Spec; # you can't use File::Spec and components +until you've # imported the module and its components my ($FILE, @FILES); # strict requires my; more important, it w +ill tell you about many goofs my $dirname="...

Update: fixed missing words in comment.