Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Print/Lookup from array element to another array element

by RichardK (Priest)
on Apr 07, 2013 at 11:53 UTC ( #1027357=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Print/Lookup from array element to another array element
in thread Print from array element to another array element

If you want to find one string inside another, just use index

So, something along these lines :-

my $text ='catfood'; # returns -1 if not found say index($text,'food',0);


Comment on Re^3: Print/Lookup from array element to another array element
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2015-03-03 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (89 votes), past polls