The regexp...
m/speed (\\w+)/
...won't capture 'speed'. I don't know where you keep coming up with that idea. If that's how your regular expression looked, it's a mistake. Here is why:
Please read perlrequick and perlop. In perlop you'll want to read the gory details of quote and quote-like parsing. It may take awhile to sink in, but will help to understand the problem you're having with the double backslash.
Dave
In reply to Re^3: Regular expression with capture following a match
by davido
in thread Regular expression with capture following a match
by ramya2005
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |