in reply to Re: Dynamic detection of a folder based on the location given
in thread Dynamic detection of a folder based on the location given

I am aware of the ENV and passing it as an option on command line.I want dynamic detction of the folder based on the location.Only one digit is different between the two folders as you can see.Can anyone please help?

  • Comment on Re^2: Dynamic detection of a folder based on the location given

Replies are listed 'Best First'.
Re^3: Dynamic detection of a folder based on the location given
by syphilis (Archbishop) on Jun 25, 2011 at 00:37 UTC
    I'm not sure exactly what you're after, but if it's just a matter of dynamically determining your current working directory:
    use warnings; use strict; use Cwd; my $cwd = getcwd(); my $sms8x18 = $cwd . "\\sms8x18\\src"; print $sms8x18;
    Cheers,
    Rob
Re^3: Dynamic detection of a folder based on the location given
by Corion (Patriarch) on Jun 24, 2011 at 21:31 UTC

    Maybe you just want to detect whether a folder exists? The -X operators are good for that, for example -d $folderpath.