Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. FireAndGlass

    Path of current executing script/module?

    $0 is just the string on the command line that invoked the script - so again it would just point you to the original perl script's directory, not the module.
  2. FireAndGlass

    Path of current executing script/module?

    Whoops, I am using lib like you said - I mistyped it. use lib $scriptingLib; use MyOtherModule; The problem is this module needs to be flexible in that a perl script from anywhere can call it and it can load it's other modules. So I would not like to rely on any knowledge about the...
  3. FireAndGlass

    Exception handling

    Can you put all that into an eval block then check $@? eval { open (...); open (...); open (...); } die $@ if $@; Not sure if that's correct, just an idea.
  4. FireAndGlass

    Path of current executing script/module?

    I'm trying to retrieve the full path of the current executing script or module. I am aware that $FindBin::Bin will return the path of the toplevel executing module, but that is different. getcwd() will get the current working directory, but again, that can be different. The situation I'm using...

Part and Inventory Search

Back
Top