Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Regarding perl reg exp
Name: raviepic3 Date: October 27, 2008 at 02:19:01 Pacific OS: XP CPU/Ram: 512 Product: p4
Comment:
#!\C:\Perl\bin use strict; use warnings; my $cont; open my $file,"Contacts.CSV" or die; open my $write,">>sample.csv" or die; while(<$file>) {
Name: FishMonger Date: October 27, 2008 at 05:17:07 Pacific
Reply:
A regex can be used to extract a substing, but in this case it would be much more efficient to use the substr function since that is what it was designed for.
$cont = substr($cont, 0, 50);
0
Response Number 2
Name: raviepic3 Date: October 27, 2008 at 10:26:35 Pacific
Reply:
hey problem solved...thank you neways for dedicating ur time on this :)
Summary: 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/tem...
Summary: I think what you need is following. If you have a submit, you can call the perl script directly as FORM action as follows. <form method="POST" action="/cgi-bin/name_of_perl_scrip.pl"> &...