On Aug 17, Pablo Fischer said: >I know that I can do this with split, but I cant (but I did it days ago, >now I cant remember :( ). > >I have > >$string, like "server=192.168.1.1" > >The big question, how can I just keep the data after =, so I will have: > >$string="192.168.1.1" instead of $string="server=192.168.1.1";
You *could* do it with split()... $string = (split /=/, $string)[1]; But it's probably more common to do: ($string) = $string =~ /=(.*)/; -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]