Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by ikegami (Pope)
on Dec 14, 2004 at 16:05 UTC ( #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
Node Status?
node history
Node Type: note [id://414746]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2020-10-27 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (258 votes). Check out past polls.

    Notices?