FAQ

Search Discussions

50 discussions - 298 posts

  • I'm having a problem with the following code: #!/usr/bin/perl use strict; use warnings; my $xtra = 'mail.example.com'; my $host = 'localhost' unless (defined ($xtra)); print $host; I get the message ...
    Sono-ioSono-io
    Apr 28, 2012 at 2:16 pm
    Apr 28, 2012 at 5:58 pm
  • Hi Guys, I know there are modules for parsing tab delimited files, but I am trying to develop a script as a learning exercise to learn the better, so any help would be appreciated. Let's say I have ...
    Tiago HoriTiago Hori
    Apr 9, 2012 at 1:13 am
    Apr 10, 2012 at 2:59 pm
  • I've got, what I hope is a fairly simple problem that someone can point me to the best (or best practices anyway) way to handle it. I'm writing a web app that monitors embroidery machines and ...
    Mark HaneyMark Haney
    Apr 25, 2012 at 5:51 pm
    Apr 26, 2012 at 8:16 pm
  • Hi All Have a question, is it good coding practice to use a & when calling a subroutine, or it is not required, or it doesn't matter? eg: sub name { some code here, returning a single value return ...
    Paul.GPaul.G
    Apr 16, 2012 at 1:54 pm
    Apr 19, 2012 at 12:07 pm
  • *Hi all, I was trying to strip off all html tags and the special characters from a html file using regex. my code is as follows. ...
    SomuSomu
    Apr 14, 2012 at 7:26 am
    Apr 14, 2012 at 6:56 pm
  • I've run into a weird issue where the ternary operator isn't doing what I believe it normally would and need some help understanding the issue. I'm sure I'm missing some critical point, but perhaps ...
    Stan N/AStan N/A
    Apr 3, 2012 at 9:39 pm
    Apr 7, 2012 at 5:26 pm
  • Hi, I have a series of files. $ cat text_1.xvg 0 0 1 2 3 2 1 0 2 3 4 1 2 0 3 $ cat text_2.xvg 0 0 1 2 3 2 1 0 3 2 4 1 3 0 2 I wish to translate the text_2 numbers (except the first field) based on ...
    LinaLina
    Apr 22, 2012 at 4:52 pm
    Apr 25, 2012 at 4:44 pm
  • Hello all. My english bad and i have a problem. I am connected to databases in a cycle foreach and the script die, if one of database is not available. #!/usr/bin/perl use strict; use warnings; use ...
    VyacheslavVyacheslav
    Apr 8, 2012 at 2:13 am
    Apr 9, 2012 at 2:27 pm
  • Can anyone recommend a good book/s for Perl and learning how to handle XPath,XML,SQL, XQuery. I would like to know better how to handle and retrieve text formats and utilise database storage of the ...
    FlebberFlebber
    Apr 18, 2012 at 2:14 am
    Apr 27, 2012 at 10:11 am
  • Hello all. I have a file with logs 2012-04-13 17:06:10,881 test:dom1 CRIT home 2012-04-13 17:06:10,882 work:dom1 CRIT home 2012-04-13 17:06:10,882 my:dom1 CRIT home 2012-04-13 17:06:10,881 test:dom2 ...
    Вячеслав АгаповВячеслав Агапов
    Apr 15, 2012 at 5:44 pm
    Apr 16, 2012 at 10:43 am
  • Hello All, I have a file like this: NM_009648,NM_001042541:1 0.955794504181601 NM_019584:1 0.900900900900901 NM_198862:1 0.835755813953488 NM_001039093,NM_001039092,NM_153080:1 0.805008944543828 and ...
    Anamika KAnamika K
    Apr 4, 2012 at 12:57 pm
    Apr 10, 2012 at 3:24 am
  • Hi, I have a text file like: $ more sample.tex aaa \cite{d1,d2},ddd \cite{e1},ccc \cite{f1,f2,f3} bbb\cite{inhibitor}aaa sub read_tex{ open my $fh, '<', @_; while(<$fh ){ if(/cite\{(.+?)\}/){ push ...
    LinaLina
    Apr 29, 2012 at 3:21 pm
    May 3, 2012 at 12:16 pm
  • Hi everyone... Why isn't it happeing!!?? Just the code from Net::SMTP docs use strict; use warnings; use Net::SMTP; #these 3 lines bring the output mx.google.com # my $smtp = Net::SMTP- ...
    SomuSomu
    Apr 23, 2012 at 8:24 pm
    Apr 26, 2012 at 1:50 pm
  • How Can I find all kinds of methods a Object support? For example: my $fh = IO::File- new("/path/to/file"); how manny kinds of methods does the $fh have ? I try perldoc IO::File , but didn't find ...
    ZappZapp
    Apr 11, 2012 at 8:12 am
    Apr 13, 2012 at 8:08 am
  • Hi, I'm trying out File::Find::Object::Rule and get a problem. Here a minimal example: #! /usr/bin/perl use strict; use warnings; use Data::Dumper; use File::Find::Object::Rule ; my $plf = ...
    Manfred LotzManfred Lotz
    Apr 23, 2012 at 3:50 am
    Apr 23, 2012 at 10:38 am
  • Hi, I used to ssh Mars (servers's name) and then cd to some directory and check some file's modification time. Can I do it locally with perl, without ssh? What I came so far is equal to null, but I ...
    LinaLina
    Apr 20, 2012 at 12:42 pm
    Apr 22, 2012 at 4:40 pm
  • Hi all, Let's say I use Template:Toolkit like this: <-----------------snip------------------- #! /usr/bin/perl use strict; use warnings; use Template; my $variables = { nrme = "Manfred", }; my $cmd = ...
    Manfred LotzManfred Lotz
    Apr 9, 2012 at 6:28 pm
    Apr 10, 2012 at 3:57 am
  • Hello everyone... Thanks for the previous replies. I'm really improving! A new problem.. Check if the word begins with un or in and has exactly 5 letters. $word =~ '^(un|in).{3}$' Check if the word ...
    SomuSomu
    Apr 8, 2012 at 11:00 am
    Apr 9, 2012 at 8:09 pm
  • Hi, I don't know how to send email in perl with /usr/bin/mail Thanks ahead for any suggestions Best regards,
    LinaLina
    Apr 2, 2012 at 1:17 pm
    Apr 2, 2012 at 5:06 pm
  • when I use bash, I can write a file ( a.sh ) like : abc='abc' ddd='aaa' ... then I can load it in other file: source a.sh echo $abc $ddd # it always work! but in perl , how can I do like that ? I ...
    ZappZapp
    Apr 27, 2012 at 7:07 am
    Apr 28, 2012 at 5:12 am
  • I'm trying to set the Return-Path in emails that I send out, but I'm not having any luck. Here's the code I'm trying: use strict; use warnings; use MIME::Lite; my $msg = MIME::Lite- new ( From = ...
    Sono-ioSono-io
    Apr 24, 2012 at 12:06 am
    Apr 25, 2012 at 12:33 pm
  • Hi, At some directory, I wish to check are there some new file generated with step* if no new generated, I wish it sleep for a while if there are some new files generated, I wish it to send am email ...
    LinaLina
    Apr 2, 2012 at 7:25 am
    Apr 2, 2012 at 4:02 pm
  • Hi All New to this group, so hello to everybody. I am currently working on creating a Array of Hashes, note it is a work in progress. I appear to be getting some corruption when inputting data with ...
    Paul.GPaul.G
    Apr 12, 2012 at 11:48 am
    Apr 13, 2012 at 10:51 am
  • Hi folks. Returning to Perl on Win32 for the first time in ages. Installed Strawberry Perl and WWW::Selenium. However, when I run the example in the CPAN help page, it hangs because the $sel- click ...
    Gary StainburnGary Stainburn
    Apr 5, 2012 at 11:22 am
    Apr 11, 2012 at 9:19 pm
  • I want to see the documentation of a module named Tk i installed recently. I wish it were in html format for better reading. I'm unable to get the best out of it in DOS mode. Is pod2html helpful? If ...
    SomuSomu
    Apr 11, 2012 at 2:54 pm
    Apr 11, 2012 at 8:07 pm
  • Hi all, I have some data which is like A:12 B:13 C: 14 Now the data is line by line and multiple line with A B C is common though 12 13 14 is changing, i want to take this data column wise, and the ...
    Om PrakashOm Prakash
    Apr 3, 2012 at 9:39 am
    Apr 7, 2012 at 5:29 pm
  • Hi Gurus, Need a help with an install in Windows server. We want to install mail::sender module in a windows server but ppm -install is not an option for us. Please guide me with the steps to install ...
    Viknesh salivahananViknesh salivahanan
    Apr 20, 2012 at 7:46 pm
    Apr 21, 2012 at 7:30 am
  • Hi there, I've got a question about XML::Mini. When parsing an xml document for some reasons I want to preserve white space. However, it doesn't work really. Minimal example: ! /usr/bin/perl use ...
    Manfred LotzManfred Lotz
    Apr 18, 2012 at 7:41 pm
    Apr 19, 2012 at 5:43 am
  • Hi, I just want to send email using MIME::Lite with Net::SMTP::SSL. But MIME::Lite is going only with Net::SMTP by default. So I searched and found a hack: use Net::SMTP::SSL; BEGIN { ...
    XiaolanXiaolan
    Apr 9, 2012 at 8:13 am
    Apr 9, 2012 at 12:11 pm
  • Hello there! I love perl's ability to "stack" processing without intermediate variables, e.g. to read in a pipe, strip off commented lines, pull out column 5, and join, I can just do this: $txt = ...
    Bryan HarrisBryan Harris
    Apr 8, 2012 at 5:09 am
    Apr 9, 2012 at 10:34 am
  • Hi, suppose I wish to print 20 * seems print "*{20}" not work. Thanks ahead for your sugestions, Best regards,
    LinaLina
    Apr 23, 2012 at 3:45 pm
    Apr 23, 2012 at 4:42 pm
  • I am trying to use Win32::IEAutomation module to test one web application which is HTTPS based. I am unable to bypass SSL security warning. Can someone help - here's the code I am using. use ...
    AlokAlok
    Apr 19, 2012 at 5:47 pm
    Apr 21, 2012 at 8:27 pm
  • Just wondering.... Where am i going to use all the programs i'm writing? Only on my own system?? Hi all! Is there a way to convert perl code into executables? Otherwise, I'll have to tell my friends ...
    SomuSomu
    Apr 19, 2012 at 2:49 am
    Apr 19, 2012 at 4:16 am
  • Hi... I have this code use Win32::OLE; my ($t_row, $t_col) = (4,3); my $word = Win32::OLE- CreateObject("Word.Application"); $word- {Visible} = 1; my $doc = $word- Documents- Add; my $table = $doc- ...
    Raito GarciaRaito Garcia
    Apr 12, 2012 at 10:44 pm
    Apr 13, 2012 at 5:13 am
  • Why does the output of perl -e "print hex '0x00001600000402'" differs from the output of perl -e "print hex 0x00001600000402" EG: bash-3.2$ perl -e "print hex '0x00001600000402'" 94489281538 $ perl ...
    Parag KalraParag Kalra
    Apr 12, 2012 at 8:35 pm
    Apr 12, 2012 at 9:27 pm
  • I am running AS 5.10.1 on Windows XP SP3 and attempting to use sFTP within my processing communicating to MVS/IBM. What I am trying to do is to do so many gets, then undef the variable and re-login ...
    Wagner, David --- Sr Programmer Analyst --- CFSWagner, David --- Sr Programmer Analyst --- CFS
    Apr 6, 2012 at 6:30 pm
    Apr 9, 2012 at 7:17 pm
  • Hi, We have a Perl script that sends out emails. It reads a sequential file and sends out the emails. The file is big, like 500,000 lines. Sometimes this process has gone down and it is a pain to see ...
    ExecManExecMan
    Apr 5, 2012 at 9:00 pm
    Apr 9, 2012 at 10:33 am
  • Hopefully I have the correct mailing list for this question. I have a script that works and looks as follows: ------- #$hash{SRC} is filled in by a database call. #These IP's are not the IP's in the ...
    Steven BuehlerSteven Buehler
    Apr 30, 2012 at 10:40 pm
    May 1, 2012 at 5:23 pm
  • Some GDB commands (e.g. "step") take a numerical argument n that tells the debugger to repeat the command n times. Does the perl debugger have a similar feature?
    Nathan TrapuzzanoNathan Trapuzzano
    Apr 25, 2012 at 1:36 pm
    Apr 25, 2012 at 4:17 pm
  • Hiya Is there a module to parse time. I.e. 00:01:20. The idea was to convert a string, i.e. time, and then to see if the time given is greater than a threshold, for example 1 hour. Hope I make ...
    Brent ClarkBrent Clark
    Apr 24, 2012 at 2:23 pm
    Apr 24, 2012 at 11:06 pm
  • Howdy, how to install perl opengl on windows 2000 without INTERNET I downloaded the (perl) opengl stuff thought I installed it correct, the right version and all, but i still can't get any of the ...
    John RiselvatoJohn Riselvato
    Apr 20, 2012 at 8:37 pm
    Apr 21, 2012 at 7:38 am
  • Hello All, I am trying to find out how I can transfer files from one directory on one server to another directory on another server? What I need to consider is that I should transfer files that are ...
    Shyam Parimal KattiShyam Parimal Katti
    Apr 20, 2012 at 7:32 pm
    Apr 20, 2012 at 8:17 pm
  • Hello list managerl I am trying to get this simple peogram to call server function and return data and it does not work, is here anyone can help? #!/usr/bin/perl2. use strict;3. use warnings; $i= ...
    Rassoul AleshiRassoul Aleshi
    Apr 16, 2012 at 3:51 am
    Apr 17, 2012 at 3:04 pm
  • hi, please help me ... I have a perl script as follows: #! / Usr / bin / perl-w # Use module use strict; use DBI; # The variable declaration my $ dbh_lina; my $ dbh_sales; my $ sql_psb; my $ ...
    Adit edogawaAdit edogawa
    Apr 12, 2012 at 3:11 am
    Apr 12, 2012 at 10:04 am
  • Hello to all, I'm very newbie of Perl but every I'm understanding how is powerful this language, but I have a problem: I'm using Perl with Selenium for scraping data (for a job) the code looks like ...
    Fabrizio Di CarloFabrizio Di Carlo
    Apr 6, 2012 at 10:47 am
    Apr 9, 2012 at 10:38 am
  • Hi , I have few files which contains user name and data transfer rate in MBs and this data is collected for year and for each month report is saved in 12 different files I have to merge all the files ...
    S Pratap SinghS Pratap Singh
    Apr 8, 2012 at 10:03 pm
    Apr 9, 2012 at 12:44 am
  • Hello everyone, #this code works for any valid input # use strict; use warnings; print "\n\n\tEnter directory : "; my $path = < ; chomp($path); #but if this line is eliminated, it shows d ...
    SomuSomu
    Apr 5, 2012 at 8:34 pm
    Apr 5, 2012 at 11:47 pm
  • Hi, I am so confused the time output result. Time::tm=ARRAY(0x109c3b0) Here is the code: #!/usr/bin/env perl use strict; use warnings; use autodie qw(open close); use 5.012; use Time::localtime; use ...
    LinaLina
    Apr 3, 2012 at 3:32 am
    Apr 3, 2012 at 4:04 am
  • This maybe a silly question but is it possible to install Perl compiler on a android device? Just curious. Thanks, Chris
    Chris StinemetzChris Stinemetz
    Apr 3, 2012 at 1:50 am
    Apr 3, 2012 at 2:05 am
  • Hi I'm trying to rotate my log files and also i have another requirement of having date suffix for the rotated files. For this I've used the following configuration ...
    MukeshMukesh
    Apr 1, 2012 at 11:11 am
    Apr 1, 2012 at 11:11 am
Group Navigation
period‹ prev | Apr 2012 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions50
posts298
users78
websiteperl.org

78 users for April 2012

Shlomi Fish: 22 posts Lina: 18 posts Somu: 15 posts Manfred Lotz: 12 posts Shawn H Corey: 12 posts Uri Guttman: 12 posts Sono-io: 11 posts Jim Gibson: 11 posts Michael Rasmussen: 10 posts Timothy adigun: 10 posts Dr.Ruud: 9 posts Rob Dixon: 9 posts John W. Krahn: 8 posts David Christensen: 6 posts Zapp: 6 posts Binish A.R: 5 posts Gary Stainburn: 5 posts Paul.G: 5 posts Вячеслав Агапов: 5 posts Bob McConnell: 4 posts
show more
Archives