Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Simple Text Manipulation

by Corion (Patriarch)
on Feb 05, 2011 at 09:37 UTC ( [id://886380]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl -w
    use strict;
    ...
    while (<>) {
        print
    };
    
  2. or download this
    if (/^Article\b/) {
        s/\s*$//; # remove trailing whitespace and newlines
        print "Line [$_] is a heading.";
    };
    
  3. or download this
    $_ = "Article 1 News";
    print "\\subsection*{$_}";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-24 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found