have you tried using CPAN module Config::IniFiles ?
http://search.cpan.org/author/WADG/Config-IniFiles-2.30/IniFiles.pm
otherwise try
open (FH, $ARGV[0]);
my %config;
foreach (<FH>) {
my ($key, $value) = split "=", $_, 2;
$config{$key} = $value;
}
print $config{'CD_ROM'},"\n";
--- Pablo Morales <[EMAIL PROTECTED]> wrote:
> 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
>
>
=====
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs