On Sunday 17 August 2003 08:20, Pablo Fischer wrote:
>
> Hi!

Hello,

> I know that I can do this with split, but I cant (but I did it days
> ago, now I cant remember :( ).

$string = ( split /=/, 'server=192.168.1.1', 2 )[ 1 ];


> 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";

( $string = 'server=192.168.1.1' ) =~ s/^[^=]*=//;


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to