Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Search an Array Question

by bobf (Monsignor)
on Nov 10, 2009 at 04:34 UTC ( #806122=note: print w/replies, xml ) Need Help??

in reply to Search an Array Question

I'd be happy to try to help, but honestly I'm not sure what you are looking for. Please include some sample data and expected output that can be used to verify solutions to your problem.

Also, it's generally not a good idea to hard code authentication credentials into your script (hint, hint). Reading from the command line or accessing an environment variable would be better.

Replies are listed 'Best First'.
Re^2: Search an Array Question
by rogermills (Initiate) on Nov 10, 2009 at 17:19 UTC
    My bad Here is the data
    15485 88 dbaril1, sthiaga, vgamji1 15500 88 jyoung1 15502 88 deure, sciftci
    What i want is if bug ID 15485 is found store the whole line in a string. The output should be like this with only the name not the number
    dbaril1, sthiaga, vgamji1

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://806122]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-06-24 20:50 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.