User Profile

Collapse

Profile Sidebar

Collapse
pavanponnapalli
pavanponnapalli
Last Activity: Aug 20 '09, 11:09 AM
Joined: May 28 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pavanponnapalli
    started a topic What should be the mime type given
    in Perl

    What should be the mime type given

    hi,
    i am trying to send a mail to lotus notes through a mail. But unfortunately,
    the mail is not sent to lotos notes if the table, which contains data, which is in my system contains more than 64 columns . The code snippet is as under.
    Code:
    my $top = MIME::Entity->build(Type =>"text/html", From => "$from", To => "$to", Bcc => "$bcc", Subject => "$subject",
    ...
    See more | Go to post
    Last edited by numberwhun; Aug 19 '09, 07:13 PM. Reason: Please use code tags!

  • pavanponnapalli
    replied to Doubt in installing CGI perl
    in Perl
    hi friend,
    Thanks a lot. My perl.exe file is in D:/ and i have changed accordingly.
    It has worked. Once again thank u.

    cheers,
    Pavan...
    See more | Go to post

    Leave a comment:


  • pavanponnapalli
    replied to Doubt in installing CGI perl
    in Perl
    [Quote]
    hi thanks for your reply. firstly the error on the browser is :
    1) Internal Server Error

    The server encountered an internal error or misconfiguratio n and was unable to complete your request.

    2) Last five lines of my log line are as under:
    Code:
    [Fri Nov 21 11:34:32 2008] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified.  : couldn't create child process: 720003: hello.cgi
    ...
    See more | Go to post
    Last edited by eWish; Nov 21 '08, 02:07 PM. Reason: Please use code tags

    Leave a comment:


  • pavanponnapalli
    started a topic Doubt in installing CGI perl
    in Perl

    Doubt in installing CGI perl

    hi,
    I have installed CGI perl following the link as under:
    http://www.ricocheting .com/server/cgi.html. I have also followed another website which has given me the same steps. But the code which i wrote
    in C:\AppServ\Apac he2.2\cgi-bin did not work. Could you pls tell me correct steps to install the same?

    Regards,
    Pavan
    See more | Go to post

  • pavanponnapalli
    replied to doubt in converting to epoch time
    in Perl
    hi, i have added code pls see my reply.

    Regards,
    Pavan
    See more | Go to post

    Leave a comment:


  • pavanponnapalli
    replied to doubt in converting to epoch time
    in Perl
    Dear friend,
    I have seen all your replies. I have searched for epoch seconds.
    Used them in my program, but at atlast i have got an error when i entered date as 31. I have surfed through the net, asked my quoleagues to solve my problem. But, i could not get the result. I am sorry if i did make a mistake.
    Pls help me in solvin this problem.

    My problem is:
    Code:
    use Time::Local;
    ...
    See more | Go to post
    Last edited by eWish; Nov 7 '08, 02:32 PM. Reason: Fixed Code Tag

    Leave a comment:


  • pavanponnapalli
    started a topic doubt in converting to epoch time
    in Perl

    doubt in converting to epoch time

    hi,
    i am using Date::Time and using localtime function to convert a given timestamp to epoch seconds. Everything is fine. The problem comes when we give date someting like 2008-11-31 04:45:45 . The error it is giving is date out of range (0..30). It is not converting date with 31 to its equvivalent epoch seconds.
    How to convert this into epoch seconds? Pls give me a solution.

    Thanks,
    Pavan
    See more | Go to post

  • pavanponnapalli
    started a topic About debugging
    in Perl

    About debugging

    hi,
    How to debug a modperl program ? is there any way like we do perl -d aaa.pl?

    Regards,
    Pvan
    See more | Go to post

  • pavanponnapalli
    replied to About sessions in modperl
    in Perl
    hi,
    Use Apache::Session Manager module.

    The syntax is as under:

    Code:
          sub handler 
         {
          my $r = shift;
          ...
    
           Apache::SessionManager::destroy_session($r);
    
          ...
        }
    Regards,
    Pavan kumar Ponnapalli
    See more | Go to post
    Last edited by numberwhun; Oct 22 '08, 03:21 PM. Reason: Please use code tags!

    Leave a comment:


  • pavanponnapalli
    started a topic Diffrence between timestamps
    in Perl

    Diffrence between timestamps

    hi,
    i have got two timestamps as under:
    Code:
     my $time1 = "2008-10-06  11:20:23";
    my $time2 = "2008-15-06  12:20:12";
    i need to get difference between $time1 and $time2 i.e. i want $time3 should be equal to $time2-$time1. Is there any module to do the same? Please tell me.

    Regards,
    Pavan
    See more | Go to post

  • Freeing up memory by undefining perl variables

    hi,
    What is the difference between undef($variable _name) and
    $vaiable_name = undef;? And is there any function in perl which dynamically deallocates the allocated memory for scalars? same question for lists and hashes.

    Thanks & Regards,
    Pavan Kumar
    See more | Go to post

  • pavanponnapalli
    replied to check whether cpan is installed
    hi,
    it is for ubuntu and solaris os. please can to tell me how to write a shell code whether perl,cpan and ppm exists before the script installs the modules from cpan
    regards,
    pavan...
    See more | Go to post

    Leave a comment:


  • pavanponnapalli
    started a topic check whether cpan is installed

    check whether cpan is installed

    hi ,
    I have got a shell script as under:

    doct.sh

    in that i have the following code
    Code:
           cpan install DBI
           cpan install DBD::mysql
           .........
    before installing DBI i need to know whether perl,cpan and ppm is existing in the linux machine or not. can anybody tell me the shell script for that as i am new to shell...
    See more | Go to post
    Last edited by Nepomuk; Sep 19 '08, 07:45 AM. Reason: The [code] tags end with [/code], not with [%code]

  • how to run multiple lines in a single batch file

    hi,
    I have got a batch file where i have written the following modules from
    CPAN:
    Code:
    ppm install DBI
    ppm install DBD::mysql
    ppm install Config::Properties
    ppm install Net::SMTP
    ppm install IO::Socket
    ppm install Log::Handler
    ppm install File::Find
    ppm install File::Copy
    ppm install Parse::AccessLogEntry
    I have written these lines...
    See more | Go to post
    Last edited by Nepomuk; Sep 15 '08, 07:47 AM. Reason: The code tags end with [/code], not with [%code]

  • Installation steps for installing perl modules

    hi,
    Could anybody tell me how to write a shell script in linux to automatically
    install perl modules from cpan? your response is highly appreciated.

    Thanks & Regards,
    Pavan
    See more | Go to post

  • wish,
    I got u. I am sorry to send u a post, without understanding ur theorey.
    I will definitly try that.

    Thanks ,
    Pavan
    See more | Go to post

    Leave a comment:


  • Dear friends,
    I am sorry to tell you that you did not catch me properly.
    Actually i have $name=pavan. So since it is set as varchar in the database, the insert module i have written need to have single quotes as
    insert into $tablename ($colnames) values ($values);
    and $colnames contains string as (Name,Desig,... .)
    and $values contains ($name,$desig). .. etc
    Now, if Name column in the database...
    See more | Go to post

    Leave a comment:


  • how to insert a single quote inside a perl scalar

    hi,
    I need to send some values to a subroutine where i use insert query.
    suppose say my scalar is as follows:

    my ($name,$number, $address) etc and i get the values into those scalars dynamically by some other process. When i send these values to the subroutine containing an insert query, there for the columns containing
    varchar i need to have ' some value' for int no quotes are requried. For...
    See more | Go to post

  • pavanponnapalli
    started a topic Subroutine for insert template
    in Perl

    Subroutine for insert template

    hi,
    I have designed a module, which contains a template for insert command.
    The code is as under:
    Code:
          my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
                                                   localtime(time);
          $year+=1900;
          $mon++;                           	                 
         
         my $col_name = "100"; 
         my $ins_name
    ...
    See more | Go to post
    Last edited by numberwhun; Sep 12 '08, 11:58 AM. Reason: Please use code tags

  • pavanponnapalli
    started a topic Doubt on matching
    in Perl

    Doubt on matching

    hi,
    Here is my Code as under:
    Code:
           #! /usr/bin/perl -w
     
      use DBI;
      my %hash;
      my @arr;
      my @arr1;
      my @arr2;
      my $var;
      my $jn;
      my $vari;
      my @array;
      my @array1;
      my @array2;
      my @array3;
      #Variable Declaration
        my $path = "D:/pavan/muco.log";
    	#definition of DataBase variables
    ...
    See more | Go to post
    Last edited by eWish; Aug 23 '08, 01:46 PM. Reason: Fixed code tags
No activity results to display
Show More
Working...