in reply to Extracting filename from a path string

$path = "\path1\path2\path3\file.ext"; # change " to ' and # you'll be fine $path = '\path1\path2\path3\file.ext';
If you escape a character with \ in a double-quoted string it'll have a different meaning.
For example, the well known sequence "\r\n" actually translates to CR LF instead of \r\n.

--perlplexer

Replies are listed 'Best First'.
Re: Re: Extracting filename from a path string
by Snaps_Provolone (Novice) on Apr 20, 2002 at 14:29 UTC
    Boy I feel dumb now! LoL Thanks guys!