in reply to Basic regular expressions
1. if you want to look for AT LEAST one \ in your code the simplest regex would be... if ($var =~ /\\/)
2. this example actually is looking at a forward slash. The dollar ($) symbol is the end of a line or string, so it would be any single slash at the end of a string.
3. is correct.
oh and follow the advice of the folks here, and read perlre...
|
|---|