Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash mark (#) treated as comment start in Perl even when it isn't #162

Open
GoogleCodeExporter opened this issue Jan 14, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Consider a Perl statement like this:

    $last_index = $#array;

The hash mark here is treated like the start of an in-line comment; the text 
"#array;" appears in comment style. In fact, this is normal Perl syntax for the 
last valid index of an array.

I'm using whatever version is currently installed at StackOverflow.

Original issue reported on code.google.com by [email protected] on 30 Jun 2011 at 9:15

@GoogleCodeExporter
Copy link
Author

Same here with css id selector, like:
@codeStart #id { attribute: value; } @codeEnd
The whole line ^ treated as comment.

Live example: http://jsfiddle.net/bN3gr/

Original comment by [email protected] on 1 Aug 2011 at 8:45

@GoogleCodeExporter
Copy link
Author

Also  caused by using hashes as delimiter in quote like operators

       qq#test#;

And also by regex operators

      s#a#b#;

both of these are normal alternative delimiters

Original comment by [email protected] on 4 May 2013 at 12:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant