Search Result

Collapse
88 results in 0.0056 seconds.
Keywords
Members
Tags
perl
  •  

  • omakhileshchand
    started a topic How to insert data into a table using perl ?
    in Perl

    How to insert data into a table using perl ?

    Sir,

    I have a text file that contain some fields,the fields are given below:-
    "","7041","8320 ","hunt_incomin g","7041","S IP/ccm102-00000001","","R ead","REPFLOW,/usr/WINAST/PRAMERICA/ENGLISH/PREVIOUSMENU,1, ,1,5","2011-05-03 03:21:57","2011-05-03 03:21:59","2011-05-03 03:22:36",39,37 ,"ANSWERED","DO CUMENTATION","1 304392917.1",""...
    See more | Go to post
    Last edited by numberwhun; Jun 19 '12, 10:25 AM. Reason: Please use CODE tags around ANY code that you put into the forums. It is required. Otherwise we have to clean up after you. Thank you!

  • How do I access a SQL Server database from a Perl script in Linux?

    I'm not able to insert the value into a SQL Server database from a Perl script in Linux
    code is given below:

    #!/usr/bin/perl

    use strict;
    use DBI;
    use Data::Dumper;
    use Asterisk::AGI;

    my $agi = new Asterisk::AGI;

    my $fifth_param = "22";
    my $first_param = "04-09-2012";
    my $second_param = "04-09-2012";
    my $third_param...
    See more | Go to post

  • PANDIYAN07
    started a topic How to submit data on web pages using script..?
    in Perl

    How to submit data on web pages using script..?

    Hi All,
    by using post method ,i cant see what are the values passed in url, is there a way other than GET to achieve this, i heard there is a way by using perl scripts.How to create perl scripts to submit data on web pages in particular URL . I would like to use some more scripts instead of submiting the data through POST and GET methods in forms. anybody have idea on this?

    Thanks in Advance....
    See more | Go to post

  • AngelBladeVII
    started a topic Problem with parsing XML file
    in Perl

    Problem with parsing XML file

    So I'm working on a program where I need to parse multiple XML files and return their attributes in a readable format. Currently the script parses all of the files and stores all the details for each file at each position of an array. An example of the desired output for each line would be:

    J MIG-49 at location "85,20,0.1" is moving to "0.5,-0.5,-300"

    Below is the XML code for reference.

    ...
    See more | Go to post

  • stiffyamit
    started a topic updating label using thread
    in Perl

    updating label using thread

    Code:
    use Thread;
    use warnings;
    use Tk;
    my $x=10;
    my $mw=new MainWindow;
    $mw->Label(-text=>"honeywell")->place(-x=>$x,-y=>50);
    my $thr = new Thread \&sub1;
    sub sub1 { 
      for($i=0;$i<20;$i++){
          $x+=20;
          sleep(2);			
          $mw->update;
    	}
    }
    	MainLoop;
    I am trying to update the label so that the text appears...
    See more | Go to post
    Last edited by numberwhun; Mar 13 '12, 03:37 AM. Reason: Please use code tags!

  • stiffyamit
    started a topic Moving cursor position by offset value
    in Perl

    Moving cursor position by offset value

    $text->SetCursor( position );
    this is used to move cursor at the given posoiton.

    Is there any way so that i can move the cursor by a given offset value??

    thanks,
    See more | Go to post

  • Prasanna CRN
    started a topic Perl read() & write() with File Handle
    in Perl

    Perl read() & write() with File Handle

    Hi Friends,
    I am trying to write a script to split file with the size as an argument.

    Based on the size, i am trying to read for Input File & Dump it to output File.

    But, read() returns the number of bytes actually being read (for ex : file split size as 200 bytes), while printing, output file size is greater(213 bytes) than actual read. I could not guess the reason. Please help me with this.
    See more | Go to post

  • starlight849
    started a topic Question about delimiters.
    in Perl

    Question about delimiters.

    I'm using the printf function to display some textual information. It is possible that the string may contain different symbols such as $#%^&* somewhere within the text.

    I know that to handle the % that I need to use a %% to make the string evaluate correctly.
    for example:
    Code:
    printf "strin%%g";
    will display as strin%g

    My question is are there any other symbols that...
    See more | Go to post

  • starlight849
    started a topic Getting around the percent sign.
    in Perl

    Getting around the percent sign.

    This has been solved

    I am passing a variable that needs to be evaluated with a print command. An example of my variable may look like this "variabl%e"

    I understand that the best way to get around the percent problem would be to simply add another percent sign to the variable and then it would evaulate out to one percent.

    Is there an option in the print command printf that will handle this without...
    See more | Go to post
    Last edited by starlight849; Jan 16 '12, 08:46 PM. Reason: Solved

  • How well is Perl suited for modifying command line output/ Huge Text and XML Files?

    Hi,

    I am a SAN Administrator and planning to pick up a scripting language primarily for the following:

    1) process and modify the command line outputs to get it in the desired format.
    All of my management stations are windows so looking for a language that can take in the command line output as input and allow me to grep or awk it, but using some functions or methods provided by the language than something OS...
    See more | Go to post

  • pikato
    started a topic Increase execution time (Speed) of Perl
    in Perl

    Increase execution time (Speed) of Perl

    Hi everyone,
    I would like to know if Perl could run faster similar to PHP. I use Perl/Jquery/Mysql/Apache. Is there any tools to enhance the overall throughput.

    Thank you.
    See more | Go to post

  • Is there any possible way to convert XML::Twig object to XML::XPath object

    I'm using XML::XPath for a long time to parse xml, now the situation has come to modify the attribute value.

    xml is available in a file, it will be very similar to this.

    <AppName>
    <Action AllDay='1' StartRace='1'/>
    <StartPoint AM_PM='AM' Hours='09' Mins='30'/>
    <EndPoint AM_PM='PM' Hours='06' Mins='30'/>
    </AppName>

    I have written a perl...
    See more | Go to post

  • rse2
    started a topic Premature ending of script headers....
    in Perl

    Premature ending of script headers....

    Hello, I am having a lot of trouble with getting a file to load. When i try it says internal server error.
    When i go to error logs to check what the problem is, it say premature ending of script headers.

    I tried changing the permissions to 755.
    I think i fixed all the syntax errors.

    it still won't work. :(

    Here is the page
    Code:
    #!/usr/bin/perl
    
    use 5.006;
    ...
    See more | Go to post

  • raj svs
    started a topic translate xml file into hashtable using perl
    in Perl

    translate xml file into hashtable using perl

    Hi, i am trying to convert xml file into hash table can any one help me, how to convert it using perl.

    my xml file data like this
    <data>
    <name>raj</name>
    <age>28</age>
    <area>s.r nagar</area>
    </data>

    i have more comments like this in my xml file.
    thanks
    See more | Go to post

  • How to get a file path on Windows Network Server from Linux

    Hi,

    I am trying to get a valid path of an Excel file exsist on windows network server from a Perl script running at Linux machine.

    I have tried searching CPAN but could not figure it out.

    Any advise will be greatful.

    thanks
    See more | Go to post
Working...