Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Can't include a HEREDOC within RHS of a Regex

by wind (Priest)
on Jun 15, 2011 at 00:15 UTC ( [id://909675]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Can't find string terminator "END_TEXT" anywhere before EOF
    
  2. or download this
    use strict;
    use warnings;
    ...
    }e;
    
    print $data;
    
  3. or download this
    $data =~ s{(foo)(bar)}{
        my $one = $1;
    ...
    Insert 1
    Insert 2
    END_TEXT
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://909675]
Approved by SilasTheMonk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found