my $str = 'CD_ROM=/path/of_cdrom';
my ($req_path) = ($str =~ /.*\=(.*)/);
print $req_path."\n";
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Pablo Morales
Sent: Friday, October 18, 2002 6:48 PM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] String Search

Hi there people.
I've gotta question.
 
I've  read a line from a file and asign it to a variable, the variable contains the following
CD_ROM=/path/of_cdrom
 
I want to retrieve the last patern ,  "/path/of_cdrom", and asign it to a variable
How can I do that?
 
Lotta Thanx
 

Reply via email to