LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   need help with IP split (https://www.linuxquestions.org/questions/programming-9/need-help-with-ip-split-856117/)

HyperTrey 01-13-2011 11:37 AM

need help with IP split
 
I want to take an IP and chop off the last part of it (IE: 10.0.0.1 would be 10.0.0) and compare it to an array. I know how to compare, I just forgot how to split and keep the first part :(

frieza 01-13-2011 11:58 AM

hmm what language? nobody can help unless you tell us that as the method varies between languages and is impossible in others

HyperTrey 01-13-2011 12:49 PM

lol, I am sorry


Perl


All times are GMT -5. The time now is 01:36 PM.