Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: changing a portion of a line leaving its formatting intact

by ikegami (Patriarch)
on Dec 14, 2004 at 16:05 UTC ( [id://414746]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/^(\S+[ ]+\S+[ ]+\S+[ ]+\S+[ ]+)(\S+[ ]+)/
       my $s = int(rand($2));
       $1 . $s . (' ' x (length($2) - length($s)))
    /e;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-03-28 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found