FAQ

Search Discussions

109 discussions - 467 posts

  • Hi all, I'm using windows machine and i'm using Net::SSH2 module to connect to remote machine below is the code i'm using, its working fine if i'm connecting to one host #!/usr/bin/perl -w use ...
    Monnappa appaiahMonnappa appaiah
    Feb 26, 2009 at 4:26 pm
    Mar 15, 2009 at 4:20 pm
  • Greetings; Here's the code: ----------------------------------------------------------------- #!/usr/bin/perl use strict; use warnings; use Mail::Builder::Simple; my $mail = Mail::Builder::Simple- ...
    Dennis G. WicksDennis G. Wicks
    Feb 24, 2009 at 5:41 pm
    Mar 4, 2009 at 5:09 pm
  • guys I am new to perl scripting. I am trying to read 2 different txt files into 2 different arrays. My goal is to have a script read them both and print out any differences. Here is the script - it ...
    MritortoMritorto
    Feb 18, 2009 at 8:43 pm
    Feb 23, 2009 at 2:43 pm
  • Can someone introduce me a free Perl editor that also can easily produce html codes. Thanks
    ItshardtogetoneItshardtogetone
    Feb 8, 2009 at 11:22 pm
    Feb 20, 2009 at 11:29 am
  • Hi All, I would like to accept some user inputs (using <STDIN ), but it might be easier for a user if I can provide the default value, so that they just have to press ENTER. How can I do that? I've ...
    Sarsamkar, ParyushanSarsamkar, Paryushan
    Feb 27, 2009 at 3:03 pm
    Mar 2, 2009 at 1:30 pm
  • trying out getting lasrgest key(by value) but below is not working... help please. my %files=%{{"one" = "1", "thiry" = "30", "four" = "4", "never" = "997", "forever" = "100001", "five" = "5"}}; my ...
    RickRick
    Feb 26, 2009 at 8:34 pm
    Feb 28, 2009 at 12:18 pm
  • Hi everybody: I have two arrays(@nwarray0 and @nwarray1) in my program and i want to make sure that all the elements in @nwarray0 could be found in @nwarray1. Here is my implementation: ...
    Kevin liuKevin liu
    Feb 11, 2009 at 8:05 am
    Feb 13, 2009 at 4:27 am
  • Ok ..... so I have to start a program which is written in java. #!/local/bin/perl my $command = "/aa/bb/c/executable \&"; my $ret = 0; $ret = `$command`; exit $ret; The normal behavior of this ...
    Ice ManIce Man
    Feb 6, 2009 at 7:34 pm
    Feb 11, 2009 at 2:42 pm
  • Hi All, I am a noob in Perl and hence would like some help to what I am sure is a very easy problem. I have got a text file in csv format The format is: <TICKER ,<DATE ,<OPEN ,<HIGH ,<LOW ,<CLOSE ...
    Soham DasSoham Das
    Feb 7, 2009 at 1:45 pm
    Feb 8, 2009 at 9:24 pm
  • I have limited experience of programming in C & C++ - I cant claim to know either of these well, but i do try to keep building on what i know, when i can. I just kept reading that Perl was a very ...
    BlazerBlazer
    Feb 7, 2009 at 11:05 pm
    Feb 11, 2009 at 12:51 am
  • I have a txt file of products that I would like to be able to insert a blank line whenever the name of the product changes, to make it easier to read. I found this srcipt hunting about but I don't ...
    Jack ButchieJack Butchie
    Feb 15, 2009 at 1:25 pm
    Feb 15, 2009 at 4:24 pm
  • Could someone please direct me to some web pages where I can go through all deprecated perl functions and/or ways of writing perl script? It is not easy for me to figure out whether an on-line ...
    KevinKevin
    Feb 14, 2009 at 11:00 pm
    Feb 15, 2009 at 2:19 pm
  • hi i have a sprintf which uses a scalar as its format: my $Bformat = "%1\$s16- %2\$s16 %3\$s16 %4\$s16 %5\$s16 %6\$s16- %7\$s16 %8\$s16" what i would like to do is generate a new format for the ...
    Rob CanningRob Canning
    Feb 18, 2009 at 5:31 pm
    Feb 19, 2009 at 6:32 pm
  • Hi everyone, I made a script using Net::SSH::Perl and I'm faced to some slow connexion times. I use rsa key to connect and it seems to be very slow, but not all the time. Sometimes it's very quick ( ...
    Julien collasJulien collas
    Feb 3, 2009 at 8:38 pm
    Feb 18, 2009 at 9:58 pm
  • Hi all, I am a newbie to Perl scripting. I have a script file, with a statement as below, which i find takes 1sec to execute. As this is called several times in the script program, this is resulting ...
    Anisha ParveenAnisha Parveen
    Feb 12, 2009 at 10:27 am
    Feb 12, 2009 at 4:12 pm
  • When trying to install an application written in perl I get the error message CSS::Squish = 0.06...MISSING so I then attempt installing it via perl -MCPAN -e shell cpan install CSS::Squish but when I ...
    Alf StocktonAlf Stockton
    Feb 2, 2009 at 9:39 am
    Feb 4, 2009 at 10:31 am
  • Hello, I just started programming in perl and currently am working in an OOP sort of program. I am writing the constructor and I wasn't sure of the differences between the following syntax: 'count' = ...
    TinaTina
    Feb 2, 2009 at 9:44 pm
    Mar 17, 2009 at 2:22 pm
  • Dear Perl programmers, I want to run a program from a perl script and redirect the its output to a file. The programs is called apbs and takes 1 argument, so in unix shell I 'm simply typing the ...
    Thomas EvangelidisThomas Evangelidis
    Feb 19, 2009 at 3:26 pm
    Mar 3, 2009 at 8:06 pm
  • Hello there My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a "common" file with constants and shared routines. The ...
    Stanisław T. FindeisenStanisław T. Findeisen
    Feb 25, 2009 at 10:44 am
    Mar 1, 2009 at 12:52 pm
  • I was installing PDF::Create with cpan under cygwin and it "suggested" that I upgrade cpan by also installing Bundle::CPAN. I tried that and now I have a mess. Whenever I try to install a new module ...
    Robyn KRobyn K
    Feb 22, 2009 at 7:13 am
    Feb 24, 2009 at 3:00 am
  • Hello, I try to write the name of the current directory in $x: $x = system ("pwd"); But it doesn't work. It also doesn't work in all these combinations:  $x = 'system("pwd")'; $x = ...
    PouliakhinaPouliakhina
    Feb 7, 2009 at 2:00 pm
    Feb 11, 2009 at 7:21 am
  • hi, i am finding something couter intuative about randomness and search for a solution. i have a bit of code that randomly selects a number from an array and then adds it to the previous number. I ...
    RobRob
    Feb 28, 2009 at 12:29 pm
    Mar 1, 2009 at 10:09 pm
  • Hello, We have a GUI where, if a button is clicked, Putty (the remote access program) is launched using System("C:\\Progra~1\\Putty\\putty.exe"); is launched. However, when this is executed, the ...
    ChuckChuck
    Feb 18, 2009 at 5:14 pm
    Feb 21, 2009 at 3:40 pm
  • I have an input file that I have to evaluate whether to include lines based upon their last character. Is there a simple regex that would allow me to assign the very last character to a variable? In ...
    GregGreg
    Feb 6, 2009 at 4:17 pm
    Feb 7, 2009 at 1:53 pm
  • Hi, Why sometimes I can use a command to install Perl module, e.g. perl -MCPAN -e "install Digest::MD5" But sometimes can't? e.g. perl -MCPAN -e "install Archive::Zip" Are there any reason? Thanks
    HowaHowa
    Feb 28, 2009 at 5:04 am
    Mar 3, 2009 at 2:37 am
  • If my data looks like this: word 1: 100 101 101 102 102 102 106 106 word 2: 101 104 106 110 113 129 131 148 word 3: 101 153 175 180 381 word 4: 106 110 113 122 131 137 142 148 word 5: 120 165 169 ...
    SusanSusan
    Feb 27, 2009 at 4:25 pm
    Mar 2, 2009 at 12:53 pm
  • Suppose I have a multidimensional array of the form: @array[names][values] For example, I have a list of database field names and the value associated with each one. If this was a single dimensional ...
    Bill HarpleyBill Harpley
    Feb 27, 2009 at 1:21 pm
    Feb 27, 2009 at 8:58 pm
  • Hi All, Can we handle exceptions in PERL programs? For example - Here if it fails to copy then can I handle the exception and perform the next steps in my script? I tried removing "die" but then it ...
    Sarsamkar, ParyushanSarsamkar, Paryushan
    Feb 27, 2009 at 1:42 pm
    Feb 27, 2009 at 5:19 pm
  • DeviloperDeviloper
    Feb 24, 2009 at 10:32 am
    Feb 24, 2009 at 12:18 pm
  • I want to extract a list of postfix's queue id's. The 'mailq' command returns output as follows: -- 8C0597408D 2503 Tue Feb 17 16:15:34 Karin@domain.org (connect to bar-plate.com[209.62.20.192]:25: ...
    PabloPablo
    Feb 18, 2009 at 6:01 pm
    Feb 20, 2009 at 9:19 am
  • Hi, I am coding a script to read a pure txt fiel and show it. I can't understand why any lines in the file match the word of "[DIED]". Thanks Org ------------------------------------------------the ...
    Org chenOrg chen
    Feb 16, 2009 at 1:32 am
    Feb 16, 2009 at 3:41 am
  • Hi, I just hit something that I hadn't noticed before and I am not sure it's it's a syntax issue or I have not been doing my reading. I am trying to create a regex to match a directory name in path ...
    DermotDermot
    Feb 10, 2009 at 11:28 am
    Feb 11, 2009 at 8:13 am
  • Hello I'm processing a file of test data that looks something like: FH1,data1,data2,data3,...etc FH2,data1,data2,data3,...etc FH1,data1,data2,data3,...etc Each line split into an array and processed. ...
    Taylor, Andrew \(ASPIRE\)Taylor, Andrew \(ASPIRE\)
    Feb 9, 2009 at 12:41 pm
    Feb 9, 2009 at 4:00 pm
  • How do I match a line ending in ,@@) using a regular expression? Thank you
    JimJim
    Feb 6, 2009 at 6:57 pm
    Feb 8, 2009 at 2:56 am
  • Hi, Is there any possible function to print the associative array. We have print_r() function in PHP to display the associative array. Likwise is there any function in perl to print associative ...
    Prasath_linuxPrasath_linux
    Feb 25, 2009 at 10:03 am
    Mar 2, 2009 at 4:46 pm
  • The following sub uses "fetchall_arrayref" in the DBI module to put the results of an SQL command into an array, where each element of the array is a hash of that records name/value pairs. The ...
    David ShereDavid Shere
    Feb 27, 2009 at 1:43 pm
    Mar 2, 2009 at 9:30 am
  • Hi, I have a line read in perl from a file that itself is a source code for languages like c/sv etc. The variable containing this line contains special characters like %d. When i print this line to ...
    Pushkar NaikPushkar Naik
    Feb 27, 2009 at 2:14 pm
    Mar 2, 2009 at 7:48 am
  • Hi, I need to find the location of perl.ini configuration file, is there any function like perlinfo() to find. Eg. phpinfo() is the function which can used to display all the configuration settings ...
    Prasath_linuxPrasath_linux
    Feb 26, 2009 at 5:43 am
    Mar 1, 2009 at 2:10 pm
  • Hi All, I have a string like this "pqp-un_1.0G_2009-02-23_17-38-09_5678903.txt " now what i need is only all digits before .txt till first underscore. which means i need only output as 5678903 please ...
    Irfan SayedIrfan Sayed
    Feb 26, 2009 at 2:45 pm
    Feb 28, 2009 at 4:06 am
  • Dear list I want to write a program which can copy files from remote machine ( like scp) using perl network programming.Is it possible to create such program? If yes then can you give me some ...
    Anirban AdhikaryAnirban Adhikary
    Feb 26, 2009 at 8:18 am
    Feb 26, 2009 at 5:16 pm
  • Cheers and thanks in advance for you help. I have a routine intended to purge duplicate emails from a list. The code below is not working. I remember seeing something like... foreach $email(@emails, ...
    PerlPerl
    Feb 24, 2009 at 3:10 am
    Feb 24, 2009 at 4:28 pm
  • problem with below @linearray prints - but just prints an array of array references (i think thats what it is anyway!) i tried to flatten it to @array but i dont really know what i am doing. i need ...
    RobRob
    Feb 23, 2009 at 5:27 pm
    Feb 24, 2009 at 12:16 pm
  • Hi All, I am new to any programming language .I am trying to copy one file structure. I have a folder structures which contains setup files, cleanup files and test file like /testplan /testplan/setup ...
    Rock LifestyleRock Lifestyle
    Feb 21, 2009 at 6:31 pm
    Feb 23, 2009 at 10:51 am
  • Hi, Looking at the script below, why does the while function loop 6 times instead of 3 times when @data have only 3 elements and I thought the output should be:- 1 $_ = aaa 1 2 $_ = bbb 2 3 $_ = ccc ...
    ItshardtogetoneItshardtogetone
    Feb 21, 2009 at 3:55 am
    Feb 21, 2009 at 5:59 am
  • Dear Friends, I am beginner & i am new in perl scripting language, currently i using perl 5.8.8 version. I installed DBI module through CPAN to connect different database. Yes i got output by ...
    Prasath_linuxPrasath_linux
    Feb 20, 2009 at 11:53 am
    Feb 20, 2009 at 6:10 pm
  • Hi All, I'm totally new to Perl. I tried installing a module Bundle-Expect.pm. Also I called inside my Perl script by "Use Bundle::Expect". While executing this script, I got an error "Can't locate ...
    Ramesh MarimuthuRamesh Marimuthu
    Feb 20, 2009 at 9:06 am
    Feb 20, 2009 at 1:12 pm
  • I have a single input file with entries as follows: --snip-- USER1 [20090101] note bla bla bla bla bla bla USER2 [20090104] note bla bla bla bla bla bla --snip-- What I'm trying to do is create a ...
    PabloPablo
    Feb 20, 2009 at 3:42 am
    Feb 20, 2009 at 9:23 am
  • I saw a Regex: (?i:(j?sessionid|(php)?sessid|(asp|jserv|jw)?session[-_]?(id)?|cf(id|token)|sid)) I especially didn't know what the leading "?i:" means. Please help, thanks!
    PracticalperlPracticalperl
    Feb 12, 2009 at 3:46 am
    Feb 17, 2009 at 2:33 am
  • I'm seeking critique of the following work-in-progress: My task is to read in a binary data file and prepare it for use. The "use" involves answering a query on whether some data is in the file, and ...
    David ShereDavid Shere
    Feb 12, 2009 at 9:02 pm
    Feb 13, 2009 at 4:24 pm
  • Hi all
    Suresh kumarSuresh kumar
    Feb 12, 2009 at 8:59 am
    Feb 13, 2009 at 4:37 am
Group Navigation
period‹ prev | Feb 2009 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions109
posts467
users115
websiteperl.org

115 users for February 2009

Chas. Owens: 55 posts Gunnar Hjalmarsson: 41 posts John W. Krahn: 32 posts Rob Dixon: 23 posts Octavian Rasnita: 17 posts Dermot: 14 posts Jim Gibson: 13 posts David Shere: 12 posts Telemachus: 11 posts Jenda Krynicky: 10 posts Itshardtogetone: 9 posts Sarsamkar, Paryushan: 8 posts Mritorto: 7 posts Owen: 7 posts Raymond Wan: 7 posts Rob Canning: 7 posts Dr.Ruud: 6 posts Rick: 6 posts S, Rajini (STSD): 6 posts Pablo: 5 posts
show more
Archives