FAQ

Search Discussions

49 discussions - 282 posts

  • Hello, I'm trying to come up with a function to send out X number of message per day(24hr day) but we need to randomize the time factore each day. For example if 50 messages are scheduled to be sent ...
    Mike BlezienMike Blezien
    Feb 7, 2011 at 9:30 pm
    Feb 10, 2011 at 12:55 am
  • Looking for a renaming tool with certain capabilities, but when googling or searching cpan its quite hard to tell if the tool can or not satisfy them. So, I hope someone can tell me right off the top ...
    Harry PutnamHarry Putnam
    Feb 1, 2011 at 2:41 am
    Feb 4, 2011 at 8:17 pm
  • What's the suggested module for perl's threads? I have been using Perl 5.12 under linux. Thanks.
    Terry pengTerry peng
    Feb 6, 2011 at 11:12 am
    Feb 12, 2011 at 1:08 pm
  • Hi All, I'm running into a problem with a pretty old freeware perl script called "readnews" it is in an archive named "readnews-1.85.tar.gz" that is available here: ...
    Ted MittelstaedtTed Mittelstaedt
    Feb 24, 2011 at 2:16 am
    Feb 28, 2011 at 9:54 am
  • Hi Perl users, Quick question, I have a one long string with tab delimited values separated by a newline character (in rows) Here is a snippet of the the string: chr1 ucsc exon 226488874 226488906 ...
    Richard GreenRichard Green
    Feb 26, 2011 at 8:06 pm
    Feb 27, 2011 at 7:26 am
  • Hello, for the following program, what is the function of lines 12 and 14 ??? 1 #!/usr/bin/perl 2 3 use strict; 4 use warnings; 5 use 5.010; 6 use Spreadsheet::XLSX; 7 8 my $excel = Spreadsheet::XLSX ...
    Mailing listsMailing lists
    Feb 11, 2011 at 10:10 am
    Feb 14, 2011 at 5:16 am
  • hello, when in the case "return undef" I prefer just "return" coz in list context it will return an empty list. my $exist = ... if ($exist) { return 1; } else { return; } the code above can work, but ...
    Terry pengTerry peng
    Feb 10, 2011 at 6:07 am
    Feb 11, 2011 at 2:47 am
  • Hi, I am trying to modify a LaTex file which is plain text. The file contains lines similar to the following, but each line is followed by text, so that: Article 1 Cats Article 2 Dogs Article 3 Fish ...
    ZavierzZavierz
    Feb 5, 2011 at 3:13 pm
    Feb 7, 2011 at 3:39 pm
  • Greetings. I'm looking for a way to run a query against a SQL database, save the result into a file, and then attach the file to an email. The DBD::mysql and MIME::Lite modules handle the SQL query ...
    David NewmanDavid Newman
    Feb 6, 2011 at 11:38 pm
    Feb 24, 2011 at 10:16 pm
  • I have a below program and I am not doing it right. Currently, only last ip pool is going in since I am putting them w/ key to values(so only last one shows up when I print). How can I aggregate and ...
    Steve parkSteve park
    Feb 28, 2011 at 7:47 pm
    Feb 28, 2011 at 11:44 pm
  • Hello, I want to get the value of a key of a Hash that is part of an Array of Hashes, whereas the correct hash to work with is being determined by the value of another key which is passed as an ...
    HACKER NoraHACKER Nora
    Feb 21, 2011 at 8:46 am
    Feb 21, 2011 at 9:33 am
  • Hi All, i am using Perl :net:ssh module to connect remotely to server and execute the remote command following is the code : my %opt = ( 'options' = [ 'ForwardAgent yes','RSAuAuthentication ...
    Irfan SayedIrfan Sayed
    Feb 10, 2011 at 7:09 pm
    Feb 19, 2011 at 4:21 am
  • Hi, I want to work with data from my database. The following select and dereferencing for display is fine: my $sql = "select secondname || ' ' || firstname from supp_verantw_v"; my $sth = $dbh- ...
    HACKER NoraHACKER Nora
    Feb 23, 2011 at 12:53 pm
    Feb 24, 2011 at 7:10 am
  • I am interested in creating a cgi perl script that I can publish on the web that will tie into a mysql database and create a x,y axis graph based on data selection. Any suggestions are greatly ...
    Chris StinemetzChris Stinemetz
    Feb 16, 2011 at 2:35 am
    Feb 16, 2011 at 8:28 pm
  • The program: -- #use strict; use warnings; my $field = shift @ARGV; my $regex = '(\w+)\s*' x $field; while (<STDIN ) { if (/$regex/) { print "$$field\n"; # refers to a match variable } } -- Example ...
    Téssio FechineTéssio Fechine
    Feb 3, 2011 at 1:05 pm
    Feb 3, 2011 at 8:23 pm
  • I'm having problem getting multiple values returned from a subroutine. Thanks in advance for pointers. My codes: #!/usr/bin/perl use strict; use warnings; ...
    Loan tranLoan tran
    Feb 1, 2011 at 6:51 pm
    Feb 2, 2011 at 4:50 pm
  • [[v5.8.8 built for x86_64-linux-thread-multi] #!/usr/bin/perl -W use Getopt::Long; my $dml = 0; my $iterations = 10; my %options = ("dml!" = \$dml, "iterations=i" = \$iterations); ...
    GryGry
    Feb 9, 2011 at 9:52 pm
    Feb 11, 2011 at 6:19 am
  • does "return ()" mean return an empty list, or just mean "return" since "()" is optional in Perl? thanks!
    Terry pengTerry peng
    Feb 11, 2011 at 1:21 am
    Feb 11, 2011 at 4:46 am
  • I would like to sort my final report in the following order: $data[31],$data[32],$data[38] How would I add this into my following program to get the report sorted this way? Thanks in advance. Chris ...
    Chris StinemetzChris Stinemetz
    Feb 1, 2011 at 4:43 am
    Feb 1, 2011 at 6:45 pm
  • Hi, I am writing a script that executes external command that may hang. I want to capture all output produced by the external command and continue with my perl code after a certain execution timeout ...
    Filip SneppeFilip Sneppe
    Feb 3, 2011 at 3:36 pm
    Mar 11, 2011 at 6:30 am
  • Hi, when I put this line in a script say a.pl: #!/usr/bin/perl -wl ... And later I run it from the command line: perl a.pl so, does this make perl ignore the "wl" switch in the script? Thanks. -- ...
    Terry pengTerry peng
    Feb 22, 2011 at 2:57 pm
    Mar 7, 2011 at 8:31 am
  • Pal, I have to files that I am trying to match: Generated from rpm -qa file1 file1 libstdc++-4.1.2-48.el5 info-4.8-14.el5 libICE-1.0.1-2.1 libacl-2.2.39-6.el5 lcms-1.18-0.1.beta1.el5_3.2 ...
    William MuriithiWilliam Muriithi
    Feb 15, 2011 at 12:09 am
    Feb 16, 2011 at 2:54 pm
  • Hello, I have a script that has been generating a strange error that I can't seem to find the source. In the script, at the top, we have the following to help trouble shoot it if any errors: ...
    Mike BlezienMike Blezien
    Feb 14, 2011 at 4:11 pm
    Feb 15, 2011 at 8:57 am
  • Hello I searched cpan and was overwhelmed by the number of modules available. I want a config module that can do updates well, preserving formats of original file, preserving blank lines, comments, ...
    Jim GreenJim Green
    Feb 8, 2011 at 2:11 am
    Feb 8, 2011 at 9:13 am
  • Hello, I wrote simple cgi scripts before but want to go further, I want to learn a little bit systematic web programming, I found catalyst and ORMs, do you guys think with those I don't need to learn ...
    Jim GreenJim Green
    Feb 4, 2011 at 10:16 pm
    Feb 5, 2011 at 8:00 am
  • Hello, I tried to convert html special characters to their real character. For example, converting &#8221; to " . I had the string $str = "&#8220; test &#8221; ניסיון "; The string contain also ...
    Shlomit AfginShlomit Afgin
    Feb 2, 2011 at 9:25 am
    Feb 3, 2011 at 2:56 pm
  • #!/usr/bin/perl use strict; use warnings; $_ = "[][12/21/10 18:39:22] [oasetup] [oasetup] [INFO] Installing the HPOvXpl package..."; for my $re (qw{ ^\[(.+?)\] ^\[(.*?)\] }) { my ($dt) = /$re/ or die ...
    Chris CharleyChris Charley
    Feb 1, 2011 at 9:45 pm
    Feb 2, 2011 at 4:35 pm
  • I just realized even after years of dabbling in perl I don't understand how function calls work. Can someone please be kind enough to help me understand how to return multiple objects from a function ...
    K4 MonkK4 Monk
    Feb 22, 2011 at 4:10 pm
    Feb 24, 2011 at 9:12 am
  • I apologize if this appears multiple times. When I did not see it appear, I posted again. Does perl have a feature like C# and Java where memory is reclaimed and defragmented? I just inherited 25K ...
    SiegfriedSiegfried
    Feb 23, 2011 at 4:52 pm
    Feb 24, 2011 at 3:15 am
  • Hi i am able to run a command on the remote machine but i am not able to completely login to the remote machine ============================= use Net::SSH::Expect; my $ssh = Net::SSH::Expect- new ( ...
    Agnello GeorgeAgnello George
    Feb 23, 2011 at 7:51 am
    Feb 23, 2011 at 5:56 pm
  • Hi, I've tried to fiure this out on my own but hit a road block. I'm reading in an external file, then doind a search and replace. I am also using the following to break lines at 256 characters use ...
    Kill SwitchKill Switch
    Feb 22, 2011 at 1:25 pm
    Feb 22, 2011 at 5:27 pm
  • Hello, this is kinda of a crossover to PHP which I'm not that fimilar with. I have a Perl script that needs to call up a specific function from a PHP script, Entry.php calls "Social_preformPost()" ...
    Mike BlezienMike Blezien
    Feb 18, 2011 at 5:53 pm
    Feb 19, 2011 at 3:12 am
  • Hello, I made a program that traverses a directory listing all the files in it and in it's sub directories.. root@pacman:/home# cat list_dir #!/usr/bin/perl -w use 5.010; use strict; sub list_dir { ...
    Téssio FechineTéssio Fechine
    Feb 17, 2011 at 4:56 pm
    Feb 18, 2011 at 4:37 pm
  • Hi; how do make certain that no input (keyboard + mouse paste) is outside of 7-bit ASCII in a perl script? Since I have no intention of correctly or completely handling input that is outside of 7-bit ...
    Kenneth WolcottKenneth Wolcott
    Feb 2, 2011 at 1:08 am
    Feb 2, 2011 at 5:50 pm
  • Hi chromatic, again, thanks for all your work on the Modern Perl book (and the blog), which came out very nicely, and I hope it sells well and all. I did not buy a copy (because I already have read ...
    Shlomi FishShlomi Fish
    Feb 28, 2011 at 8:34 pm
    Mar 3, 2011 at 7:22 pm
  • I ran into something that I need help understanding. In the attached script, subroutine file_proc1 converts all elements of @molec to undef, while file_proc2 does not. adjusting file_proc1 to first ...
    DD
    Feb 22, 2011 at 5:08 pm
    Feb 24, 2011 at 9:52 am
  • file 1 2010-11-21,2 2010-12-01,1 file 2 2010-11-22,12 2010-12-01,11 this is for GD graph and the file file should be like this 2010-11-21,2 2010-11-22,12 2010-12-01,1,11
    MuzammilMuzammil
    Feb 14, 2011 at 10:46 am
    Feb 14, 2011 at 4:25 pm
  • i'm getting this error: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at ./test-get.pl line 91, <FILE line 1. DBD::mysql::st execute failed: Column count doesn't ...
    Shawn wilsonShawn wilson
    Feb 12, 2011 at 10:56 pm
    Feb 14, 2011 at 1:05 pm
  • RD Perl has no proper boolean values. Instead, the boolean operators RD treat zero, undef, and the null string '' all as false. Anything else RD is true. to be pedantic, '0' is also false. it isn't ...
    Shawn wilsonShawn wilson
    Feb 12, 2011 at 3:59 am
    Feb 12, 2011 at 5:37 am
  • Hi, I have the following html page which simply colects information, then a second page send the data to a third page to show the results from previous two pages. What I am tryinng to do is showing ...
    IinferIinfer
    Feb 11, 2011 at 2:08 am
    Feb 11, 2011 at 4:19 pm
  • Hello: I have some static data I want to wrap in a Data.pm, what is the best way of doing this. package data; use strict; use warnings; my $data=1; 1; I tried use data; print $data; but it doesn't ...
    Jim GreenJim Green
    Feb 10, 2011 at 1:57 am
    Feb 10, 2011 at 1:53 pm
  • Hello, How to know that the given text is with which encoding method? for example, is it ISO-8859-1, UTF-8, KOI8-U, or others? Thanks.
    Terry pengTerry peng
    Feb 8, 2011 at 2:40 pm
    Feb 8, 2011 at 3:12 pm
  • Hello all, I need to include CPAN modules as part of our custom "application stack" installation. I was thinking that I would just include the tar gz files as part of the application stack, then have ...
    Mark MeyerMark Meyer
    Feb 3, 2011 at 7:16 pm
    Feb 4, 2011 at 10:55 am
  • Hello: I am confronted with a task of creating a package to manipulate a set of configuration files. for example I need to setup up a server and need to change lots of configuration files and create ...
    Jim GreenJim Green
    Feb 4, 2011 at 1:15 am
    Feb 4, 2011 at 6:14 am
  • Hi, I have 2 versions of a zip file(same archive, but with updates.). I need to compare the 2 versions. I adopted the following approach. The files are v1.zip and v2.zip. 1) extract to /tmp/v1 and ...
    Balachandran SivakumarBalachandran Sivakumar
    Feb 1, 2011 at 7:15 am
    Feb 1, 2011 at 7:29 am
  • Hi, I've got a program that wants to broadcast a packet and accept a unicast reply. I can see with wireshark that the broadcast is made and a node on the network does respond with it's source set to ...
    Brian J. MurrellBrian J. Murrell
    Feb 18, 2011 at 11:45 pm
    Feb 18, 2011 at 11:45 pm
  • Hi, I am trying to use a script called VelvetOptmizer for optimizing assembly of genome sequencing reads, which is part of the velvet assembler freeware. This script uses modules 'threads' and ...
    Galeb abu-aliGaleb abu-ali
    Feb 17, 2011 at 3:54 pm
    Feb 17, 2011 at 3:54 pm
  • I am trying to write a script that takes the extend name as an arg and retrieves the output for further processing. I am not sure how to do this, get_request() needs a numeric oid, is there a way ...
    Joseph L. CasaleJoseph L. Casale
    Feb 9, 2011 at 7:04 pm
    Feb 9, 2011 at 7:04 pm
Group Navigation
period‹ prev | Feb 2011 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions49
posts282
users79
websiteperl.org

79 users for February 2011

Uri Guttman: 27 posts Terry peng: 16 posts Rob Dixon: 15 posts Mike Blezien: 13 posts Jim Gibson: 12 posts Shawn H Corey: 12 posts Shlomi Fish: 12 posts John Delacour: 10 posts Dr.Ruud: 9 posts Parag Kalra: 9 posts Ted Mittelstaedt: 8 posts Harry Putnam: 7 posts John W. Krahn: 7 posts Octavian Rasnita: 7 posts Brandon McCaig: 6 posts HACKER Nora: 6 posts Shawn wilson: 6 posts Brian Fraser: 4 posts Chris Stinemetz: 4 posts David Newman: 4 posts
show more
Archives