Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How to remove the . in the generated string
my $file = shift;
For the above variable it is giving an output like this "./root/git/common/crt_del/cert/DEFAULT.pem"
I want to remove the "." before the /root for that can i use like this $file =~ s{.}{}g or any other way is there to remove that dot in the string
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: In my perl script one of the variable it is giving an extra dot.
by choroba (Cardinal) on May 25, 2022 at 08:18 UTC | |
|
Re: In my perl script one of the variable it is giving an extra dot.
by eyepopslikeamosquito (Archbishop) on May 25, 2022 at 10:31 UTC | |
|
Re: In my perl script one of the variable it is giving an extra dot.
by Discipulus (Canon) on May 25, 2022 at 08:19 UTC | |
by hippo (Archbishop) on May 25, 2022 at 09:23 UTC | |
|
Re: In my perl script one of the variable it is giving an extra dot.
by soonix (Chancellor) on May 25, 2022 at 08:55 UTC | |
|
Re: In my perl script one of the variable it is giving an extra dot.
by kcott (Archbishop) on May 25, 2022 at 14:37 UTC | |
|
Re: In my perl script one of the variable it is giving an extra dot.
by ikegami (Patriarch) on May 26, 2022 at 18:18 UTC |