Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Extract data from txt file

by jdporter (Paladin)
on Dec 02, 2019 at 13:41 UTC ( [id://11109542]=note: print w/replies, xml ) Need Help??


in reply to Re: Extract data from txt file
in thread Extract data from txt file

$/ = ''; $\ = "\n"; $, = ", "; while (1) { local $_ = <> or last; s/\s+$//; my $y = <> or last; $y =~ s/\s+$//; if ( /(.+) (APT \d.*)/ ) { print $1, $2, $y; } elsif ( /(.+) (APT) \(Range (\d+)([A-Z]+) - \3([A-Z]+)\)/ ) { print $1, "$2 $3$_", $y for $4 .. $5; } }
I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-19 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found