Computing.Net > Forums > Programming > Perl reg exp

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Perl reg exp

Reply to Message Icon

Name: raviepic3
Date: February 3, 2009 at 07:22:40 Pacific
OS: XP
CPU/Ram: enough
Product: Intel / Solo
Subcategory: General
Comment:

i need to extract a part from string and check for similarity with data contained in another variable , if yes i have replace the assigned value for it..

$dircheck="dirroot";
$dirreplace="/var/www/temp1";
Ex:
CFG->dirroot = '/var/www/temp ' ;
CFG->libroot = '/var/www/temp/lib ' ;

i need to check the lines using the $dircheck and if the content matches i need to replace the content at right side of = with the $dirreplace ..

programming newbie :)



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


set global variable in ba... if /i %user% crashes



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Perl reg exp

Regarding perl reg exp www.computing.net/answers/programming/regarding-perl-reg-exp/17169.html

about regular expression www.computing.net/answers/programming/about-regular-expression/5968.html

perl coding www.computing.net/answers/programming/perl-coding/16343.html