P is for Practical | |
PerlMonks |
Re: change forward slash to backslashby vek (Prior) |
on Nov 20, 2005 at 15:44 UTC ( [id://510247]=note: print w/replies, xml ) | Need Help?? |
If you plan on using that directory as part of a filename, you could always give File::Spec a try. Not only will it do what you want by converting C:/windows to C:\windows, it helps you write portable code. Which will output C:\temp\tempfile
--
vek
--
In Section
Seekers of Perl Wisdom
|
|