Hi eWish...
This is what I am looking for....
From the scrap perl code @sql array which contains set of elements. those elements need to loop and search in a file sample.pl to find out for the @sql elements located in the perl file or not. If they regular expression satisfies and found the @sql elements from the sample.pl (instead of text file, I am searching perl files) those lines need to append $prn and later...
User Profile
Collapse
-
Kevin,
Sorry for the inconvenience.. .
This is the sample file which the array is searching whether element is presentor not
sample.pl
----------------
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Leave a comment:
-
Thanks Kevin for looking into it...
Actually I am not comparing the complete line with the array
In the file each line contains set of words with in that I am searching the array element is present in that line or not
I hope Kevin that u had an idea what I am looking for....
Thank youLeave a comment:
-
Pease help me out with the program
[CODE=perl]@sql = ('SV_userLogin. sql','sv_getDB_ cmpCnt_r3m.sql' ,'sv_getDB_cmpC nt.sql','sv_get DB_Corp_Trgt.sq l','sv_getDB_sc ore.sql','sv_ge tDB_Top25_cmpCn t.sql','sv_getD B_Top25_score.s ql','sv_getOrgN ameById.sql');
my $prn;
foreach ( @sql )
{
my $line = $_;
if($line =~ s/^(\S+).sql$/$1/)
{
print "$line\n";
open(FILE,"c:/perl-scripts/sample.pl");... -
-
Error: 'null' is null or not an object
Hi All...
Any one help me with the above weird error
I have a code like below
[CODE=perl]print <<"HTML";
Content-type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">... -
Hi frnds,
Thanks a lot.. Problem got resolved... I just sent the $var to javascript function as an argument and taken into a js variable.
<script type="javascrip t">
initParam($var)
</script>Leave a comment:
-
Thank you eWish for you efforts to help me out...
Some one plzz...help meLeave a comment:
-
eWish..
Yes, It is the input variable I am getting from the database.Leave a comment:
-
Thanks Kevin for the response...
Is there any other way with out using the CPAN module.. because I already wrote a huge no. of lines of code(Perl/CGI/HTML/Javascript).. So, I don't want to change the whole thing. It will mess up completely....
I searched a lot to get that.. still I am unable to get the sol.. If any one help me this. really I will be very thank full to himLeave a comment:
-
How can i pass and access a Perl var parameter in a Javascript function
Hi All,
How can i pass a Perl var($val) as a parameter to a Javascript function.
Please can any one help me out...
ex:
Perl Code
----------------
Code:$var = 'sample' <select name="sample" onChange="lbChange('sample');">
Code:<select name="sample" onChange="lbChange(
No activity results to display
Show More
Leave a comment: