Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Can't include a HEREDOC within RHS of a Regex

by wind (Priest)
on Jun 17, 2011 at 22:32 UTC ( #910266=note: print w/replies, xml ) Need Help??


in reply to Re: Can't include a HEREDOC within RHS of a Regex
in thread Can't include a HEREDOC within RHS of a Regex

Should this be reported as a bug?

I understand the "why" and there definitely isn't a big need for this type of functionality. However, the RHS of a regex should behave like any other eval block in my opinion.

The last time I found a bug you reported it for me. Should this one be reported as well?

I only discovered this while helping someone else on a different forum, so I don't foresee any lost sleep for anyone if this isn't fixed. It also might introduce new problems given there is a "work around" that might've used by others in the past. Can't say which action would be best.

  • Comment on Re^2: Can't include a HEREDOC within RHS of a Regex

Replies are listed 'Best First'.
Re^3: Can't include a HEREDOC within RHS of a Regex
by ikegami (Pope) on Jun 18, 2011 at 00:57 UTC
    I don't see what could be done about it, really. Maybe a documentation fix? But I think that would clutter up the docs more than anything.
      Maybe a documentation fix?

      I think, at least an extra test in the test suite demonstrating a working heredoc in RHS :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://910266]
help
Chatterbox?
[thezip]: So I have a script that generates a log file. After script completion, I want tohave VIM open this logfile.
[thezip]: i don't get the command line "back" until I close VIM. No what I want to happen...
[thezip]: I currently don't have access to CYGWIN, else I'd just do a tail -f on the logfile.
[Corion]: thezip: If you want to open vim and can live with opening a second console window, use start "The results" vim.exe c:\path\to\logfile .log
[thezip]: Ooops... I lied. I guess Cygwin is back. I'll just do a tail -f instead. Better. Sorry for the noise.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-03-27 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.