noviceuser has asked for the wisdom of the Perl Monks concerning the following question:
Hi users, i want to write a method in perl to create links for different cases like below
case 1: create link such as /home/rcap/br_19_16_Rel_RTM -> /lan/fed/rcrel/APCVS/br_19_16_Rel_RTM
case 2: create link such as /home/rcap/regs -> /lan/fed/rcrel/APCVS/br_19_16_Rel_RTM/regs
so when i give -l /home/rcap as command line argument to the script, it should create link as case 1 and,
when i give -l /home/rcap -b then it should create link such as case 2
where -b is a boolean value which should be passed only when case 2 is required
i am not able to achieve both the requirements in my script, any help will be appreciated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Create 2 different sets of links using command line argument
by davido (Cardinal) on Feb 11, 2021 at 19:49 UTC | |
|
Re: Create 2 different sets of links using command line argument
by marto (Cardinal) on Feb 11, 2021 at 18:12 UTC |