Setting PATH within a Perl Script

Discussion in 'Perl' started by Manzoorul Hassan, Feb 28, 2005.

  1. Isn't there a simple way to add a dir to my PATH env? Seems like all
    the examples I've seen so far all in one way or another is parsing the
    current PATH and puts it all together, including the new dir.

    Isn't there a simpler version of this whole process?

    - manzoor
     
    Manzoorul Hassan, Feb 28, 2005
    #1
    1. Advertising

  2. Manzoorul  Hassan

    Mintcake Guest

    Manzoorul Hassan wrote:
    > Isn't there a simple way to add a dir to my PATH env? Seems like all
    > the examples I've seen so far all in one way or another is parsing

    the
    > current PATH and puts it all together, including the new dir.
    >
    > Isn't there a simpler version of this whole process?
    >
    > - manzoor


    You want something simpler than...

    $ENV{PATH} .= ":$dir";

    ???
     
    Mintcake, Feb 28, 2005
    #2
    1. Advertising

  3. no, this will do ;o)

    Thanx!!!

    - manzoor
     
    Manzoorul Hassan, Mar 1, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wet Basement
    Replies:
    1
    Views:
    2,557
    BobMonk
    Jul 15, 2003
  2. dpackwood
    Replies:
    3
    Views:
    1,841
  3. jay
    Replies:
    7
    Views:
    257
    Chad Perrin
    May 3, 2007
  4. ad
    Replies:
    5
    Views:
    345
    Uri Guttman
    May 30, 2004
  5. Replies:
    4
    Views:
    308
    ccc31807
    Jul 29, 2011
Loading...

Share This Page