467,179 Members | 1,234 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,179 developers. It's quick & easy.

Need help on Perl oneliner

Hi
I have a file with sample test as follows

abc04,10.20.30.30
abc05,10.30.40.50
abc06,10.40.50.50.50

In my perl script if it searchs for abc04(can be hardcoded) it should give the address(10.20.30.30) corresponding to it and store it in a variable.

I will be able to do this with a normal perl program(using while loop) but I nned to do it using perl liner....

It will be really helpful if someone can help me in this..

Thanks
Jul 17 '08 #1
  • viewed: 975
Share:
1 Reply
numberwhun
Expert Mod 2GB
This sounds too much like school work to me and I need to let you know that if it is such, that posting here for the answers is against site policy.

On the other hand, you can try to write it and then if you get stuck, post your code here (enclosed in the required code tags) and we will help you get it working.

Regards,

Jeff
Jul 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Roy Smith | last post: by
52 posts views Thread by Olivier Scalbert | last post: by
2 posts views Thread by Paul Porcelli | last post: by
1 post views Thread by Spamtrap | last post: by
2 posts views Thread by MK | last post: by
4 posts views Thread by Freedolen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.