Don't ask to ask, just ask | |
PerlMonks |
reading var from the fileby perlb (Initiate) |
on May 17, 2008 at 15:16 UTC ( [id://687098]=perlquestion: print w/replies, xml ) | Need Help?? |
perlb has asked for the wisdom of the Perl Monks concerning the following question:
I have the Temp varaible store in a file. It's value ends with the number and a slash (/) at the end. Some its value is store in one line and some time it is store in 2 line with carriage return at he end of first line
- Temp: abds.wewe/fssaf:erferr@abc.co c.us:342/ - Temp: abds.wewe/fssaf:erferr@abc.coc.us:342/ Does any one know how do I can get this value in a varaible... Below code only gets the first line only, I want to get the value where its end with "/". Current Output: var_temp= abds.wewe/fssaf:erferr@abc.co Expected Out put: var_temp= abds.wewe/fssaf:erferr@abc.coc.us:342/ Does any one has an idea how to do this... Thanks,
Back to
Seekers of Perl Wisdom
|
|