Your skill will accomplish what the force of many cannot |
|
PerlMonks |
In my perl script one of the variable it is giving an extra dot.by Anonymous Monk |
on May 25, 2022 at 07:05 UTC ( [id://11144177]=perlquestion: print w/replies, xml ) | Need Help?? |
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
Back to
Seekers of Perl Wisdom
|
|