sendmail
Hello, The problem description is s follows : Well i have made a program that sends mails thru sendmail. earlier the content type was text/html now i have made the content type text/plain acoording to the reqments. but the problem i am getting is in hyperlinks. now i want the hyperlink to be shown as http://www.abc.com and the actual path to be http://www.abc.com/xyz/abc.htm How can i achieve this? Thanks, Rahul
Fw: off topic : frames html question
Well, I also dont know whether its possible or not ? Any suggestions. - Original Message - From: Rahul Garg <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 10:57 AM Subject: off topic : frames html question Well, I have a html page which has many hyperlinks. Now each hyperlink at present calls another html page that has two frames(horizontally).Ist frame is same for all links. Now second frame is also same but has many bookmarks. I want that on clicking difft. hyperlinks they should lead to their bookmarks. How is it possible or nany references. I know it is offtopic but i think some people here might have some experience in html. Thanks, Rahul -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
off topic : frames html question
Well, I have a html page which has many hyperlinks. Now each hyperlink at present calls another html page that has two frames(horizontally).Ist frame is same for all links. Now second frame is also same but has many bookmarks. I want that on clicking difft. hyperlinks they should lead to their bookmarks. How is it possible or nany references. I know it is offtopic but i think some people here might have some experience in html. Thanks, Rahul
off topic question : simple shell script
well i need to write a shell script, what i want to do is open a file,read each line ,do operations and then close a file. open(HANDLE,filename); @files = ; foreach $line(@files) { # } close(HANDLE); How will i do it in shell script.. Thanks, Rahul
parameter passing
Well,I have a HTML form which is calling a perl script.In form there is a multiple selector box ,now when 2-3 lines are selected each is passed with the same name and different value pair. How to capture all values by parameter name ie there are name = value1 name = value2 name= value3 @values = $query->param('name'); is not working Thanks, Rahul
parameter passing
Well,I have a HTML form which is calling a perl script.In form there is a multiple selector box ,now when 2-3 lines are selected each is passwd with adifferent name value pair. How to capture all values bya parameter name Thanks, Rahul
Re: problem recognising character
problem solved. its actually \r \n (hex values - 0D OA) - Original Message - From: Rahul Garg <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 10:44 AM Subject: problem recognising character Well, I have a HTML form in which there is a textarea box.This form calls a perl script. Now when i fill the textarea with 3-4 lines of text and the data gets transferred, then when i get this textarea data there is a special character (html form, i think shows %0D%0A )between each of the 3 0r 4 linesof text .I want to find which is that special character as i want to get it substitutes to some other character. how can i do that? Thanks, Rahul -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem recognising character
Well, I have a HTML form in which there is a textarea box.This form calls a perl script. Now when i fill the textarea with 3-4 lines of text and the data gets transferred, then when i get this textarea data there is a special character (html form, i think shows %0D%0A )between each of the 3 0r 4 linesof text .I want to find which is that special character as i want to get it substitutes to some other character and store the data in a file. how can i do that? I think %0D%0A is a line break, but what is the character for line break.Its not newline.how can i know what is that special character? Thanks, Rahul -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem recognising character
Well, I have a HTML form in which there is a textarea box.This form calls a perl script. Now when i fill the textarea with 3-4 lines of text and the data gets transferred, then when i get this textarea data there is a special character (html form, i think shows %0D%0A )between each of the 3 0r 4 linesof text .I want to find which is that special character as i want to get it substitutes to some other character. how can i do that? Thanks, Rahul
Re: cronjob problem
Hello, I am running crontab command. I want the output of commands in crontab file to be mailed to me. I am expecting the output that is printed out on terminal to be mailed to me... For that I am setting the MAILTO environment variable at the beginning of crontab file. MAILTO="" But its not working though the commands in crontab file are working fine. Also, if I am having the file say xyz.sh that is being called from cron, its executing and is not sending the results to me.If i remove the xyz.sh from the actual path its not also sending the error message to the mailid. Any suggestions please! With Regards, Rahul Garg.
cronjob problem
Hello, I am running crontab command. I want the output of commands in crontab file to be mailed to me. For that I am setting the MAILTO environment variable at the beginning of crontab file. MAILTO="" But its not working though the commands in crontab file are working fine. Also, if I am having the file say xyz.sh that is being called from cron, its executing and is not sending the results to me.If i remove the xyz.sh from the actual path its not also sending the error message to the mailid. Any suggestions please! With Regards, Rahul Garg.
Fw: cronjob problem
Hello, I am running crontab command. I want the output of commands in crontab file to be mailed to me. For that I am setting the MAILTO environment variable at the beginning of crontab file. MAILTO="" But its not working though the commands in crontab file are working fine. Also, if I am having the file say xyz.sh that is being called from cron, its executing and is not sending the results to me.If i remove the xyz.sh from the actual path its not also sending the error message to the mailid. Any suggestions please! With Regards, Rahul Garg.
regex problem
well, the problem goes like this : if($line contains one and only one \t) ### if($line =~ /\t/ (checking for no tab) && $line !~( ) )#cheching for more than one tab { } else { } how to check $line contains how many tabs ..is there any func in perl one can do in c thru pointers but howto do in perl
Re: problem executing linux command in perl
Also, the script is working fine if i am changing permissions manually .it is fetching and appending data to $r_file Any suggestions.. - Original Message - From: Rahul Garg <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; John W. Krahn <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 6:57 PM Subject: Re: problem executing linux command in perl chmod 0777, $r_file or die "Cannot chmod $r_file: $!"; giving error : error :Cannot chmod : no such file or directory - Original Message - From: John W. Krahn <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 6:29 PM Subject: Re: problem executing linux command in perl Rahul Garg wrote: > > I am transfering xyz.txt file from windows98 to linux server manually. > $r_file = "xyz.txt" ; > then in perl script i am executing `chmod 0777 $r_file` ; > # $r_file is in the same directory as is perl script > but the line is not executing > i have tried system command too. Use the chmod() function built in to perl. chmod 0777, $r_file or die "Cannot chmod $r_file: $!"; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem executing linux command in perl
chmod 0777, $r_file or die "Cannot chmod $r_file: $!"; giving error : error :Cannot chmod : no such file or directory - Original Message - From: John W. Krahn <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 6:29 PM Subject: Re: problem executing linux command in perl Rahul Garg wrote: > > I am transfering xyz.txt file from windows98 to linux server manually. > $r_file = "xyz.txt" ; > then in perl script i am executing `chmod 0777 $r_file` ; > # $r_file is in the same directory as is perl script > but the line is not executing > i have tried system command too. Use the chmod() function built in to perl. chmod 0777, $r_file or die "Cannot chmod $r_file: $!"; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem executing linux command in perl
Hi, I am transfering xyz.txt file from windows98 to linux server manually. $r_file = "xyz.txt" ; then in perl script i am executing `chmod 0777 $r_file` ; # $r_file is in the same directory as is perl script but the line is not executing i have tried system command too. Any suggestions.. Thanks, Rahul,
sendmail in html
hi, well i am trying to send mails thru sendmail in html but they are coming in html with tags and html not getting executed. how should i correct the prob. open (MAIL, "|$mail_prog -t"); print MAIL "To: $r_mailid \n" ; print MAIL "From: $s_mailid \n" ; print MAIL "Subject: $subject \n\n" ; print MAIL "Content-type: text/html\n\n"; print MAIL "$c_message" ;#data in html print MAIL "\n\n" ; close (MAIL) ;
getting ip address
Hi everybody, The problem goes like this : from html i am calling a perl script. in that perl script what i want is : if (the request is comping from ip adress==w.x.y.z) { #code } else { #code } what should i do to know from which ip address the request is coming in perl... any suggestions..refrences..sample perl script for this will be of immense help. Thanks Rahul
calling perlscript from html
problem goes like this- what i want is to call a perl script from html document or image...onload what tags ..code should i need to write in html Thanks, Rahul
Re: installing modules
i have actually got the solution. if i have the module Bar.pm in directory '/usr/home/rahul/myMod' then in the perl script that uses this module i have to include the statement use lib '/usr/home/rahul/myMod' ; use Bar ; Thanks, Rahul - Original Message - From: EternalLifeThereAfter <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 2:28 PM Subject: Re: installing modules > ----- Original Message - > From: "Rahul Garg" <[EMAIL PROTECTED]> > To: "Dave Storrs" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; > "eventualdeath" <[EMAIL PROTECTED]> > Sent: Monday, November 12, 2001 2:49 PM > Subject: Re: installing modules > > > > But > > if i want to have my module(say, same as above) in /usr/home/rahul/ > > instead of /usr/local/lib/perl5/site_perl > > then how i can put that directory in @INC...what then exacly i have to > do.. > > My guess is that @INC is inside perl.exe. > > > > > _ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing modules
Yes, my question was about how to install my OWN modules and ur explanation worked very well... one more Question : U said,If I created a directory in /usr/local/lib/perl5/site_perl named > 'Foo/' and in that directory I put a file named 'Bar.pm', then I could use > that module by doing: > use Foo::Bar; it worked very well But if i want to have my module(say, same as above) in /usr/home/rahul/ instead of /usr/local/lib/perl5/site_perl then how i can put that directory in @INC...what then exacly i have to do.. Thanks, Rahul - Original Message - From: Dave Storrs <[EMAIL PROTECTED]> To: Martin Pfeffer <[EMAIL PROTECTED]> Cc: Rahul Garg <[EMAIL PROTECTED]>; Perl 6 Beginners list <[EMAIL PROTECTED]> Sent: Saturday, November 10, 2001 2:03 AM Subject: Re: installing modules > > > Since I suspect your next question would be "Ok, then how do I install the > CPAN module?" let me head this one off. > > The CPAN module (CPAN.pm) comes with the basic distro of Perl, so you > should already have it. Say you want to install the "CGI.pm" module from > CPAN. At your command line, you type: > perl -MCPAN -e 'install CGI' > The -MCPAN means "use a module (-M), specifically, CPAN.pm". The -e means > "the script will be specified on the command line." > > If this is the first time you've ever used CPAN, it will need to ask you a > LONG set of questions...don't be intimidated, it provides default answers > to pretty much everything, and the defaults are generally correct. > > > However, your question seems to have been about how to install your OWN > modules. Do this: > perl -e 'print join "\n", @INC, "\n";' > This will dump out a list of directories. On my system, the list is this: > /usr/local/lib/perl5/5.6.1/alpha-dec_osf > /usr/local/lib/perl5/5.6.1 > /usr/local/lib/perl5/site_perl/5.6.1/alpha-dec_osf > /usr/local/lib/perl5/site_perl/5.6.1 > /usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf > /usr/local/lib/perl5/site_perl/5.6.0 > /usr/local/lib/perl5/site_perl > . > Now, if I put a file named "Foo.pm" in /usr/local/lib/perl5/site_perl, I > could then tell Perl to use that file as a module in one of my scripts by > putting the following line at the top of the script: > use Foo; > > If I created a directory in /usr/local/lib/perl5/site_perl named > 'Foo/' and in that directory I put a file named 'Bar.pm', then I could use > that module by doing: > use Foo::Bar; > > Hope this helps. > > Dave > > > On Fri, 9 Nov 2001, Martin Pfeffer wrote: > > > Install the CPAN Module > > Then type install Modulname > > > > Hope it helps > > martin > > > > Rahul Garg wrote: > > > > > well, > > > > > > i want to install modules on my system(linux) that i have made. > > > what i know is they are to be installed at @INC. > > > but exactly how.any suggestions > > > any sources for reading... > > > > > > Bye, > > > Rahul > > > > > > > > > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
installing modules
well, i want to install modules on my system(linux) that i have made. what i know is they are to be installed at @INC. but exactly how.any suggestions any sources for reading... Bye, Rahul
problem in writing code(switch/case)or enum
what i want is : $s_month can be 1 to 12 if($s_month == 1){$s_month = 'JAN'};and so on how can i do it.
How can i establish sessions in Perl
How can i establish sessions in Perl
problem in knowing session variables .
Hello, i am fetching the asp page by filling in the form. After filling in the form and submitting a request it requests the page . a session is established with some session variables. How could i know what r the session variables involved in while fetching the page. Any suggestions... Thanks, rahul
printing out yesterdays date
is there any command in linux to get yesterdays date -mm/dd/yy or can a program be written for it in perl...any suggestions
timeout problem
Well, I am getting the html pages from site. well while getting the pages ,sometimes i get Timeout.if the server response or speed is slow..how can i increase the timeout time...is there any function for it in perl or any help/suggestions...
help please.....array and coding problem
@lines is an array which contains blank lines as well as textlines...what i want to do is to get a line from array thru shift(@lines) until the array doesnt contain the textline or array has no more line(element)..how i should implement the red part while( ($details_1 = shift(@lines) ) =~ /^$/ ) { }; Thanks in advance, Rahul
Code problem
@lines is an array which contains blank lines as well as textlines...what i want to do is to get a line from array thru shift(@lines) until the array doesnt contain the textline or array has no more line(element)..how i should implement the red part while( ($details_1 = shift(@lines) ) =~ /^$/ ) { }; Thanks in advance, Rahul
problem with parsing of HTML
Well, I need to parse the HTML document and convert it into ascii. The HTML document contains tables.is there any module for it. With HTML::Parser its giving Table Not Shown ...
Re: Got it.....Source code of Perl Modules?
Well, I got it myself... http://www.linpro.no/lwp/libwww-perl/ - Original Message - From: Rahul Garg To: [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 10:37 AM Subject: Source code of Perl Modules? From where can I get the source code for modules of perl(exact path),specifically of LWP and CGI.pm thanx, Rahul
Source code of Perl Modules?
>From where can I get the source code for modules of perl(exact path),specifically of >LWP and CGI.pm thanx, Rahul
Installing Module
Well, I want to install LWP modules on Linux. At present they are not.CPAN module is there but Linux at present is not connected to net. What exactly I have to do...means What files exactly I have to install from where(exactly). Where I have to install it on Linux. What commands are needed? I think I have to download it from CPAN. I need to first download it on Windows and then to Linux.thru FTP.
perl version
how could i know which perl version i am using : any command on unix/linux
Not working in Netscape, working in IE
Hello , The problem goes like this- value of $mailids is coming from previous perl script if($emailids eq ' ' || $emailids eq '@' || $emailids eq '.' || $emailids !~ /..+/ ) { print <<"enter"; Content-type : text/html Search #invokes the same perl script with the error message ..not working in Netscape but working in IEinstead it gives the complete HTML code in Netscape...any solution enter } else { invokes the same perl script working in both Netscape and IE checked } Thanks Rahul
Is there any function for converting uppercase characters to lowercase chars ?
Hello, Is there any function for converting uppercase characters to lowercase chars ? Thanks Rahul
Image not coming in perl script while displaying n simple html with the same path..Why?
hello Everybody , In perl script code goes like this... .. Its not running(image not shown)sorry is displayed ...but the complete perl script except this is working very fine if i run the same in simple html, image is shown.no path problem... ...is there anything that needs to be done in perl scripts to include images..? Thanks in advance, Rahul Garg
Re: HTML/CGIPERL/JavaScript related
- Original Message - From: Rahul Garg To: [EMAIL PROTECTED] Sent: Wednesday, August 01, 2001 11:04 AM Subject: HTML related Hello , What i want is a hyperlink after activated once get disabled.. I am using HTML/PERL Can i use onClick event in hyperlink..and onClick make the hyperlink disabled if there is no other way out..and how to do thisi dont know javascript waiting for reply, Thanx in advance, Rahul
HTML related
Hello , What i want is a hyperlink after activated once get disabled.. waiting for reply, Thanx in advance, Rahul
is it possible?
How can we disable the hyperlink? > What i mean is that on certain condition if true the hyperlink to a > particular perl script can be activated but if false cannot be > activated(ie though the hyperlink is shown it doesnt work)just like there is > a DISABLE option in Button. > > > > > > > > > Waiting for Reply, > > Thanx in advance, > > Rahul > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simple
Hello, How can we disable the hyperlink? Waiting for Reply, Thanx in advance, Rahul
simple
Hello, In my perl script , i am writing HTML code..within it i am using for spaces , as i need a lot spaces is there any other solution. Thanx in advance, Rahul Garg.
Linux Beginners Mailing List
Hello Everybody, I want to know the names of Linux Beginners mailing list as good as this one of Perl. Waiting for Reply, Thanx, Rahul
Linux commands in perl
hello Everybody , Simple question.. How to run Linux commands in Perl code... Waiting for Reply Thanx in Advance... Rahul
File not Opening.....why?
Hello Everybody, One of the files is not opening.Couldnt get WHY...possibly U CAN..HELP NOTE : the same program i am running independently on telnet with command line arguments , is running perfectlybut thru browser its not working..the problem its giving is as follows .. the code goes like this : # !usr/bin/perl -w use CGI; $query =new CGI ; print <<"Endoftext"; Content-type: text/html Endoftext # fine till here $mailids = $query->param('mailid') ; for($mailids) { s/^\s//; s/\s+$//; } print "$mailid Hello" ; # fine till here $file =/var/www/cgi-bin/cgirahul/cli.txt ; $old = $file ; $new =$file.tmp.$$" ; $bak="$file.bak"; print"SH"; # fine till here open(OLD,"< $old") or die "cant open $old: $!"; print "HE" ; # fine till here open(NEW,"> $new") or die "cant open $new: $!";###nothing printed print "OOOPPs" ; not printing man...above file is not opening i hope .. rest of prog.goes here.. Waiting for Reply. Thanx in Advance, Rahul
File not Opening.....why?
Hello Everybody, One of the files is not opening.Couldnt get WHY...possibly U CAN..HELP the code goes like this : # !usr/bin/perl -w use CGI; $query =new CGI ; print <<"Endoftext"; Content-type: text/html Endoftext # fine till here $mailids = $query->param('mailid') ; for($mailids) { s/^\s//; s/\s+$//; } print "$mailid Hello" ; # fine till here $file =/var/www/cgi-bin/cgirahul/cli.txt ; $old = $file ; $new =$file.tmp.$$" ; $bak="$file.bak"; print"SH"; # fine till here open(OLD,"< $old") or die "cant open $old: $!"; print "HE" ; # fine till here open(NEW,"> $new") or die "cant open $new: $!"; print "OOOPPs" ; not printing man...above file is not opening.. rest of prog.goes here.. Alsoif i am running this as a simple perl program its runningbut not when using CGI i think so may be here is the problem Waiting for Reply. Thanx in Advance, Rahul
Deleting the contents of file:Help
Hello Everybody, I want to search for a specific mailid in a file and if found then delete that mailid from that file. open(HANDLE_CLI, "> $file_cli") || die"Cannot open $file_cli:$!\n" ; ###its ok. while() { chomp; if($mailid eq $_) { s/$_// ; break ;###deleting the contents of fileis there any specific commnd to delete the contentshow to do } close(HANDLE_CLI); Waiting for Reply.. Thanx in Advance, Rahul. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deleting the contents of file
Hello Everybody, I want to search for a specific mailid in a file and then delete that mailid from that file. open(HANDLE_CLI, "> $file_cli") || die"Cannot open $file_cli:$!\n" ; ###its ok. #search code that i will do.. ###deleting the contents of fileis there any specific commnd to delete the contentshow to do...also if i have search earlier then can i directly go to that point in file thru something like filepointer in PERL..how??? close(HANDLE_CLI); Waiting for Reply.. Thanx in Advance, Rahul.
Deletig the contents of a file
Hello Everybody, I want to search for a specific mailid in a file and then delete that mailid from that file. open(HANDLE_CLI, "> $file_cli") || die"Cannot open $file_cli:$!\n" ; ###its ok. #search code that i will do.. ###deleting the contents of fileis there any specific commnd to delete the contentshow to do...also if i have search earlier then can i directly go to that point in file thru something like filepointer in PERL..how??? close(HANDLE_CLI); Waiting for Reply.. Thanx in Advance, Rahul.
Appending(writing) to a file
Hello Everybody, I want to append to a file but not able to do so..actually ia ma not getting the command to write(append) to a file open(HANDLE_CLI,">> $file_cli") || die"Cannot Append\n" ; print HANDLE_CLI "$mailid\n" ; ## ithink problem is here close(HANDLE_CLI); Waiting for Reply.. Thanks in Advance, Rahul
Re: Re: simple Telnet or vi editor problem
Subject: simple Telnet or vi editor problem > > > I am using vi editor on telnet. After typing in 25 or so lines the next lines are not shown though they are savedstupid question but not getting it..whats the command so that they are shown on editor.. > Waiting for reply... I think the solution given below is indirect way of handling the problem.it shows the entered lines typed only after using :1 and CTRL d and not shows the lines as u type..still creating a problem. any more solutions... i have received some mails that there may be some settings to be required on the server.but what are those settings...and how to do it.. i am using Red Hat Linux7.0 Version Server. i am actually still not getting where the problem isin the serverin telnet or some command to be reqd. in vi editor also the problem is not accuring in Linux server and windowsNT server.its in the terminals .. Any suggestions will bve higfhly appreciated Waiting for Reply. Tahnx in advance - Original Message - From: <[EMAIL PROTECTED]> To: Rahul Garg <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 7:45 PM Subject: Re: Re: simple Telnet or vi editor problem > Rahul, > > You could use a :1 and that will take you to the first line of your program. Then use cntrl d to page you down. > cntrl u will get you up one page. > > Anna > Rahul Garg <[EMAIL PROTECTED]> wrote: > > Hello, > Any solutions regarding this , Creating a problem . > Waiting for Reply... > Subject: simple Telnet or vi editor problem > > > I am using vi editor on telnet. After typing in 25 or so lines the next lines are not shown though they are savedstupid question but not getting it..whats the command so that they are shown on editor.. > Waiting for reply... > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple Telnet or vi editor problem
Hello, Any solutions regarding this , Creating a problem . Waiting for Reply... Subject: simple Telnet or vi editor problem I am using vi editor on telnet. After typing in 25 or so lines the next lines are not shown though they are savedstupid question but not getting it..whats the command so that they are shown on editor.. Waiting for reply...
simple Telnet or vi editor problem
I am using vi editor on telnet. After typing in 25 or so lines the next lines are not shown though they are savedstupid question but not getting it..whats the command so that they are shown on editor.. Waiting for reply...
so simple!i am newbie!
whats the use of putting my infront of some scalar variables... waiting for reply.
Removing spaces
Hello everybody, A simple Q well i want to remove spaces if any in the beginning and end of a string. how to do this... Waiting for Reply... Thanx in advance .
PARSING
Hello Everybody, $string ="rahul;john;hary;brian;raj;dolly;jim; What i want to do is parse the string and put different names in a separate variable..How! Thanx in advance, Waiting for Reply
Re: Parsing of a File and SEARCH ...........HELP!!!!!!!!!!!!!
one more simpleQ... After opening the file , How to read a file line by line...sample code Thax in advance. waiting for replies. - Original Message - From: Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> To: Rahul Garg <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, July 16, 2001 6:10 PM Subject: Re: Parsing of a File and SEARCH ...HELP!!!!! > On Jul 16, Rahul Garg said: > > >1)I want to look out for a particular string in a file. > > Actually there is only one strng in each line of a file. > >How to search for it.sample codeas i am new to syntax of perl > > For just finding ONE string in ANOTHER string, the index() function is all > you need. > > my $pos = index("jeffrey", "fre"); # 3 > my $pos = index("jeffrey", "jeff"); # 0 > my $pos = index("jeffrey", "free"); # -1 > > As you can see, the function returns -1 on failure. Please read the docs > for the function: > > perldoc -f index > > >2)I want to look out for a particular part(match) in a string in a file. > > Actually there is only one string in each line of a file. > > You need to open the file, and go through it, line by line, executing the > index function on the line. > > while () { > if (index($_, $word) > -1) { > # $word was found somewhere in $_ > } > } > > Learn how to work with files: > > perldoc perlopentut > perldoc -f open > > -- > Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ > I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun. > Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/ > Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/ > Acacia Fraternity, Rensselaer Chapter. Brother #734 > ** Manning Publications, Co, is publishing my Perl Regex book ** > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parsing of a File and SEARCH ...........HELP!!!!!!!!!!!!!
Hello Everybody, well i am looking for various types of searching...help 1)I want to look out for a particular string in a file. Actually there is only one strng in each line of a file. How to search for it.sample codeas i am new to syntax of perl 2)I want to look out for a particular part(match) in a string in a file. Actually there is only one string in each line of a file. How to search for it.sample code Thanx in advance, Rahul
CGI-PERL!!!!!!!!!!!HELP!!!!!!!!!!!!!!!
Hello Everybody.. What i have done is placed a .cgi file in cgi-bin directory of web server. In this file i am using on submission search_results is also placed on cgi-bin dir. of same server. But it is giving Internal server error.i have not done much in search_results.cgi so basically i feel there is no syntax error. What are the possible reasons of error..Please Help! Thanks in Advance, Rahul
Regarding Internal Server Error
Hello Everybody.. What i have done is placed a .cgi file in cgi-bin directory of web server. from here i am calling on submission search_results is also placed oin cgi-bin dir. of same server. But it is giving Internal server error.i have not done much in search_results.cgi so basically i feel there is no syntax error. What are the possible reasons of error..Please Help!
CGI-PERL-HTML.......HELP!!!!!!!!!!!!!!!
Hello Everybody, Well, I am developing an appl. in CGi-PERL that wil run on webserver . The app will call files on webserver and make changes in it. The approach i am following is : 1). For the web interface i will develop perlscripts with html code(forms) in it. This i will do . 2)I want, After filling forms and on clicking hyperlinks , certains actions to occur (calling files on webserver and then generating another forms in perl script again withoutput from files) . As i am new to PERL/HTML i want to know is : 1. where( & how) to write code in perl script(HTML) for actions to occur on clicking hyperlinks . I think I have to call another perl script on clicking hyperlinks(?.where( & how)tags,attributes???)...Can i call two perl scripts(or subroutines) on single click..(where and how>) .. can u please give simple 2-3 line code regarding this so that i can proceed 2 where the data from forms will go on click and how to fetch the data... 3. i have to call files on webserver from the appl. running on web server . its a simple filehandling as in C or there is something other to be done for handling files on webserver... Waiting for REPLIES. thanx in advance... Rahul
CGI-PERL
Hello, Well, well I have to create web pages whish on receiving inputs and submission will perform various actions on files on web server. could u suggest which of the two approaches i should follow: 1. create pages in HTML and then call perlscripts. 2. only thru perl scripts. to my knowledge 2) is better. but how to approach it...can u give some sample scripts regarding this..and ur views I am a beginnerHELP!!!
Needs beginners cgi-perl mailing list
Hello, I want to know the references of mailing list for beginners CGI-PERL programming. Help!!!
CGI-PERL
Hello, Well ,I am a beginner to PERL friends. I think we can create HTML sort of pages thru perl scripting.Thats what is called CGI-PERL programming and can carry out various operations on say click events. (But how ?can u give me some simple examples.) Tell me if I am correct/not correct. Can u give me some references for beginners.(basics of CGI-PERL programming with examples). Help!!
HTML and PERL Queries
Hello, Well again some biggeners Q. 1.How do I call a perlscript from a HTML page. 2. Whats the way to fetch values from page and put again same values on HTML depending on the results of perlscript(dynamically). Can u give some references or perlscript examples regarding above. Help!!
How to connect to a web server
Hello, I am a beginner in Perl.Well, I want to know how thru perl script we can connect to a web server and fetch the files on webserver. Help!