Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Determine if array value in string results

by james28909 (Deacon)
on Nov 21, 2018 at 17:48 UTC ( [id://1226137]=note: print w/replies, xml ) Need Help??


in reply to Determine if array value in string results

Can you show us the code that you have tried? The code thats not working?

What it sounds like to me is that you are trying to loop through an array with 900+ elements and find the ones that match "valuen".

use strict; use warnings; my @array = qw(valuen valued valuec valueq values); for (@array) { if (/valuen/) { print; } else { print ";"; } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-18 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found