Anish has asked for the wisdom of the Perl Monks concerning the following question:
this works because my sharedrive is maped to G: on my PC, now I want to use sharedrive name instead, i.e $drvSwift="sharedrive/directoryname/Swift";so people who wants to use my code and have access to sharedrive, dont have to change the code to put in drivename to which this sharedrive is mapped to on their PC. but everytime they run it it points to that Sharedrive, Disregarding where this sharedrive is mapped to on thier PC.is it possible? if it is, what is the syntax?? Thanks for help.#! /usr/bin/perl $drvSwift= "G:/directoryname/Swift"; open (IN,"<$drvSwift/filename") or die "can't open the file: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Perl and Shared drive
by tye (Sage) on Nov 06, 2000 at 22:00 UTC | |
|
Re: Perl and Shared drive
by Fastolfe (Vicar) on Nov 06, 2000 at 22:00 UTC | |
|
Re: Perl and Shared drive
by wardk (Deacon) on Nov 06, 2000 at 22:06 UTC | |
by the_slycer (Chaplain) on Nov 06, 2000 at 22:42 UTC | |
by Anish (Novice) on Nov 07, 2000 at 02:20 UTC | |
by Fastolfe (Vicar) on Nov 07, 2000 at 02:22 UTC | |
|
RE: Perl and Shared drive
by zzspectrez (Hermit) on Nov 06, 2000 at 23:20 UTC | |
by Anish (Novice) on Nov 07, 2000 at 02:32 UTC | |
by zzspectrez (Hermit) on Nov 07, 2000 at 09:33 UTC |