Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: how extract and group data in a array

by GrandFather (Saint)
on Feb 21, 2017 at 06:08 UTC ( [id://1182398]=note: print w/replies, xml ) Need Help??


in reply to how extract and group data in a array

Looks like you want a regular expression to do the work for you. I suggest you take a look at perlretut for a start.

You repeated use of arrays where you should be using scalars (my @dd; instead of my $dd;) suggest you are not very familiar with Perl so you may get some mileage out of reading through perlintro too.

When you have put some code together to try, and if you should happen to have trouble making it work, come back for some guidance.

Update: must be time for glasses! I'm sure I saw qq/.../. Sigh. Disregard the comments above.

Premature optimization is the root of all job security

Log In?
Username:
Password:

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

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

    No recent polls found