I am new to perl.
In a string How do I replace a backward slash with a forward slash?
when I call the following perl api $FindBin::Bin; I get the path as follows
$myPath = c:/perl/test
I would like to covert this to
c:\perl\test
I did try the following and get errors
#$myPath=~ tr/\//\/c;
alan_123 0 Newbie Poster
d5e5 109 Master Poster
alan_123 0 Newbie Poster
d5e5 109 Master Poster
rocky martin 0 Newbie Poster
d5e5 109 Master Poster
alan_123 0 Newbie Poster
maaria 0 Newbie Poster
dozierc 0 Newbie Poster
d5e5 109 Master Poster
mitesh.24jain 0 Light Poster
mitesh.24jain 0 Light Poster
swapnilkesharka 0 Newbie Poster
Arrtti 0 Newbie Poster
Taywin 312 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.