Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Windows - dirname(__FILE__)

by demichi (Sexton)
on Apr 11, 2014 at 11:51 UTC ( #1081952=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    use File::Basename;
    my $script_dirname = dirname(abs_path($0));
    print "dirname: $script_dirname\n";
    
  2. or download this
    C:\Data\scripting\misc>path_test.pl
    dirname: C:/Data/scripting/misc
    ...
    dirname: C:\Data\scripting\misc
    
    C:\Data\scripting\misc>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081952]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2016-06-30 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (392 votes). Check out past polls.