Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: here document styling

by impossiblerobot (Deacon)
on Mar 06, 2002 at 19:17 UTC ( [id://149799]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $text = <<"EOT"
    This
    ...
    text.
    EOT
    ;
    
  2. or download this
    my $text = <<"EOT";
    This
    ...
    my
    text.
    EOT
    
  3. or download this
    my $text = "This\nis\nmy\ntext.\n";
    
  4. or download this
    while ( <<"EOT" =~ m/(.*is.*)/g )
    This
    ...
    {
        print $1,"\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found