[OT] escape a dot in perl

Thomas Kaiser (ubuntu) ubuntu at kaiser-linux.li
Fri Nov 18 19:54:52 UTC 2005


Hello

Sorry, I know this is off topic, but maybe somebody has an answer :-)

Why does
@title = split ("\.\./", $line);
and
@title = split ("../", $line);
give me the same results.

In both cases, it splits if it sees two chars and a slash. So, It looks 
for me that the backslash does not work as escape char for the dot??

Thanks, Thomas

-- 
http://www.kaiser-linux.li




More information about the ubuntu-users mailing list