Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

some efficiency, please

by Anonymous Monk
on Apr 12, 2019 at 15:01 UTC ( [id://1232492]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ($allfile =~ /^(\d+) /mg)
        {
    ...
    for (@objects) { $allfile =~ s/^ +$_\n//m; }
    
    print $allfile
    
  2. or download this
    for (@objects) { $allfile =~ s/^ *(foo)? +$_\n//mn; }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-25 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found