Search Discussions
-
Hi Wanted to ask a question about practical beginners guides for perl. I have found a read the baisc beginners guides here ...
Sayth Renshaw
May 27, 2011 at 3:10 am
Jun 5, 2011 at 6:25 pm -
Hi; A colleague claims that he made no changes, code worked yesterday and doesn't today. He is not using OO Perl. I have asked him for a small code snippet that reproduces the error (I'm sure he is ...
Kenneth Wolcott
May 18, 2011 at 8:37 pm
May 23, 2011 at 1:23 pm -
hi all, i am using following command to build the solution file using perl perl says some error : following is the error : Bareword found where operator expected at -e line 1, near "qx/C:\\Program ...
Irfan Sayed
May 23, 2011 at 12:02 pm
May 24, 2011 at 9:06 pm -
hi all, As with other releases of File::Slurp I think this list should be told about it since this module is so easy to use and makes your Perl much simpler and also faster. uri Have you ever wanted ...
Uri Guttman
May 15, 2011 at 5:29 am
Jun 7, 2011 at 7:40 pm -
Hello List! I have a quick question about memory release in perl: { my @array; foreach my $n (1..1e7 ) { push @array, $n; print "$n\n"; } } print "sleeping\n"; sleep 600; after the code block, I ...
Jim Green
May 19, 2011 at 12:16 am
May 20, 2011 at 4:40 am -
Can someone recommend a good ISP that keeps up with Perl? Right now we're with A2 Hosting and they're still stuck at version 5.8.8, and they refuse to upgrade because, and I quote, "we unfortunately ...
Sono-io
May 11, 2011 at 2:35 am
May 22, 2011 at 9:12 pm -
HI i am given ever day a list of files which i wget within a parent folder . my team gives me a structure where theses files are located ================ cat /home/upload_files1.txt download the ...
Agnello George
May 31, 2011 at 6:15 am
Jun 1, 2011 at 6:08 am -
Hi all: I translated a program from c to perl.but the perl program cost 15 seconds compare to the original c one cost only less than 1 second, I guess this might be the result of I literally ...
Xi Liu
May 26, 2011 at 5:05 am
May 30, 2011 at 2:44 am -
Have a date: 2011-05-02-16:40:51 Using this to get it: $tm = gmtime; $time_stamp = sprintf "%04d-%02d-%02d-%02d:%02d:%02d", $tm- year + 1900, $tm- mon + 1, $tm- mday, $tm- hour, $tm- min, $tm- sec; ...
Matt
May 2, 2011 at 4:46 pm
May 6, 2011 at 1:19 pm -
9
reg exp
hi, i have string like this "2011/05/25 07:24:58 -0700 PDT" i need to match "2011/05/25" i wrote reg ex like this: ^\d\d\d\d//\d\d/\d\d$ but it is not working code is like this $lin = "2011/05/25 ...Irfan Sayed
May 25, 2011 at 2:39 pm
May 31, 2011 at 9:44 am -
Hi I am using TT to display my data from my db , i insert the following data from a Front end using ( <textarea ) into my database the data is like this in mysql : ...
Agnello George
May 27, 2011 at 10:48 am
May 29, 2011 at 6:34 pm -
Hi, To reset password in unix, the system will prompt 2 times for entering the new password. The first time is to enter the new password and the second time is to confirm the new password of the ...
Dolphin
May 1, 2011 at 12:23 am
May 3, 2011 at 9:46 am -
Hi Members, I am a linux system admin. I want to use perl as a command line like sed and awk. For example suppose , i need to extract IP Addr from a string or file using regrex i mean str="hello ip ...
Vishesh kumar
May 24, 2011 at 4:11 am
May 27, 2011 at 12:26 pm -
Hello everyone, I would like to learn an efficient way to change a single column in a file that is accessed by an external program after the column is changed each time. open write close is what I ...
D
May 9, 2011 at 8:29 pm
May 11, 2011 at 5:19 am -
Good Morning, I could use some help figuring out where a warning is coming from. My shopping cart script has the following sub: 695 sub get_ud { 696 my ($log, $pass) = $main::global- {login} ? ...
Sono-io
May 31, 2011 at 4:33 pm
Jun 6, 2011 at 9:04 am -
Hi I am on my way to learning perl, and am reading the beginning perl book. In chapter 2 I am following the exercises ...
Sayth Renshaw
May 31, 2011 at 4:28 am
May 31, 2011 at 3:41 pm -
Hi all, I've received quite a lot of heat from people here and elsewhere, due to the fact that I sometimes referred people to resources on http://perl-begin.org/ , in part because it is my own work. ...
Shlomi Fish
May 19, 2011 at 6:53 am
May 31, 2011 at 9:36 am -
I have an input csv file which data looks like the following: csno,svgrp,antfc,cdmanbr_list1.ncs_c,cdmanbr_list1.nghbrantf,cdmanbr_list1.pgn_c ...
Chris Stinemetz
May 17, 2011 at 8:31 pm
May 17, 2011 at 9:46 pm -
HI, I have a file with sequences each sequence is 200 pb long and I have 30K lines ATGGATAGATA\n TTCGATTCATT\n GCCTAGACAT\n TTGCATAGACTA\n I want to calculate the AT ratio of each base based on their ...
Nathalie Conte
May 13, 2011 at 3:47 pm
May 14, 2011 at 12:08 pm -
HI, I have this file format chr start end strand x 12 24 1 x 24 48 1 1 100 124 -1 1 124 148 -1 Basically I would like to create a new file by grouping the start of the first line (12) with the end of ...
Nathalie Conte
May 12, 2011 at 9:23 am
May 13, 2011 at 8:15 am -
I'm trying to figure out what the differences are with all of the available message queue projects. There's spread, rabbit, amq and a dozen+ others. I'm not sure how polarized this subject is so ...
Shawn wilson
May 26, 2011 at 8:44 am
May 26, 2011 at 9:18 pm -
Hi All, I need to truncate last few bytes of file. these files are big in size. One idea is to write needed bytes to another file and delete the original file, but i am dealing with big files :( dont ...
A b
May 20, 2011 at 10:10 am
May 23, 2011 at 8:33 am -
Hi All I have a small issue in arranging data with a array ref . $arrayref = [ [ [ 'user1, 'c'], [ 'user2', 'a'], [ 'user2', 'b' ],[ 'user2', 'd' ],[ 'user3', 'a' ],[ 'user2', 'f' ] ] ]; i tried the ...
Agnello George
May 13, 2011 at 10:11 am
May 13, 2011 at 4:57 pm -
Hi All, I need help in matching the regular expression, the file is as below. I am trying to match number followed by Number ex 587, 128 in $1 and 60:06:01:60:42:40:21:00:3A:AA:55:37:91:8A:DF:11 in ...
Jet speed
May 11, 2011 at 3:38 pm
May 11, 2011 at 9:48 pm -
Hi, Could you please tell me best Perl functions/modules for password encryption and decryption? Thanks and Regards, Amresh
Amresh Sajjanshetty
May 6, 2011 at 12:38 pm
May 7, 2011 at 6:03 am -
Here's a simple example that illustrates the problem I've run into: perl -le' show(); { my @fibs = (0,1,1); my ($x, $y) = (1,2); sub show { print "x=$x\ty=$y\t\$#fibs=$#fibs\tfibs=@fibs\tscalar ...
Mike McClain
May 6, 2011 at 12:22 am
May 7, 2011 at 3:26 am -
Hi In my script i am using template toolkit. I am trying to set the cookie in my browser but all that it does is it prints the following output on my broswer : Set-Cookie: ...
Agnello George
May 4, 2011 at 1:23 pm
May 5, 2011 at 6:44 am -
I am try to crawl a webpage that one is redirected to another. I am using Scrappy module for crawling process. I am using version 0.94111370 (Updated version). Any one suggest me to handle the ...
Ambuli
May 24, 2011 at 1:26 pm
Jun 1, 2011 at 1:41 am -
Hello All: My rsync options are not being recognized in the system function. I tried escaping the asterisks and single quotes to no avail. Also, I do not want to install any rsync modules. Your help ...
Ezra Taylor
May 27, 2011 at 7:10 pm
May 31, 2011 at 10:03 am -
I have a requirement of generating large number ( 100 thousand ) files from a single template by replacing the placeholders with respective values Currently I use Template-Toolkit, but is there a ...
Ramprasad Prasad
May 27, 2011 at 12:56 pm
May 31, 2011 at 10:00 am -
Hello, World! I'm an amateur programmer trying to convert some of my old BASIC programs to run in a browser so people don't have to download and install software. I'm having a problem with my current ...
John M Rathbun MD
May 31, 2011 at 12:48 am
May 31, 2011 at 8:15 am -
Hello, I'm triying to do some substitutions on an pdf file. perl -p -i~ -w -e "s/A/B/;" file.pdf This works as intended, except: perl adds 0x0D (Windows \n) :-/ as a HEX diff shows. How can I work ...
Thomas Liebezeit
May 26, 2011 at 1:04 pm
May 29, 2011 at 8:38 am -
Dear all, I try to run this script to process my radar data, the script build by someone, I have asked him, but his advice can not help. This error message : ARGV error firstradar velx vely This is ...
Indrag
May 18, 2011 at 9:26 am
May 18, 2011 at 5:44 pm -
In reading in a file of space separated columns of numbers and stuffing them into an array, I used: while( my $line = <$FH ) { my @arr = split /\s+/, $line; push @primes_array, @arr; } but kept ...
Mike McClain
May 15, 2011 at 4:28 pm
May 16, 2011 at 11:45 pm -
hi all, i need to use sendmail module of perl to send mails. i have seen much perl modules to send mails but i dont know which one is suitable for my requirement my requirement is : i need such ...
Irfan Sayed
May 12, 2011 at 6:20 am
May 12, 2011 at 10:37 am -
Hi, i am running system command using following line in perl script ($stdout,$stderr) = capture_exec("$workspace\\Dev_Tools\\Nant\\bin\\nant -buildfile:abc.build $target"); print "$stdout\n"; print ...
Irfan Sayed
May 11, 2011 at 12:12 pm
May 11, 2011 at 2:46 pm -
Dear list, I´m relatively new to Perl, so please be patient. I tied to get rid of whitespace characters by the following programme: my $i=" USEFUL "; if ($i =~ /\s/) { $i =~ s/\s*//; } print ...
Irene Zweimueller
May 10, 2011 at 5:25 pm
May 10, 2011 at 8:17 pm -
Hi List, I am trying to write a small script to parse bibliographic references like this: Morgan, M.J., Wilson, C.E., Crim, L.W., 1999. The effect of stress on reproduction in Atlantic cod. J. Fish ...
Tiago Hori
May 9, 2011 at 6:14 pm
May 10, 2011 at 12:08 pm -
Hi, Looking at the script below, how do I pass 2 arrays from the main script into the subroutine? Thanks #### script ###### #!/usr/bin/perl use strict; my @whatever = qw(a b c d e); my @test = qw(1 2 ...
Eventual
May 7, 2011 at 3:47 pm
May 9, 2011 at 3:51 pm -
Hi, I want to read the content of a hidden folder like $path = '/home/user/.gnome2/folder/folder'; in a list but with opendir(DIR, "$path") || die "folder not found" $!; I got an error message. ...
Guba
May 8, 2011 at 1:29 pm
May 9, 2011 at 3:00 am -
4
new here
Hi all, I´m new here and my English is not the best. However, I would like to get some help for my perl-problems. I want to write a script which is finding data´s like "0.1" or "46.7" in a string and ...Wolken Flug
May 6, 2011 at 6:13 pm
May 6, 2011 at 10:02 pm -
I have old legacy code on .net 1.1 c# Byte[] clearBytes = new UnicodeEncoding().GetBytes(cleanString); Byte[] hashedBytes = ((HashAlgorithm) ...
Apm
May 5, 2011 at 3:55 pm
May 6, 2011 at 5:16 am -
I'm not a perl guy but I need to make something run that relies on the BSDGlob.pm module. I downloaded xzvf File-BSDGlob-0.94.tar.gz from CPAN and generated the Makefile. The make dies with bash-3.2$ ...
Robi
May 31, 2011 at 10:08 am
Jun 13, 2011 at 2:40 pm -
I received three unsolicited recommendations for moderators to this list, one volunteer, and three unsolicited requests to deny moderatorship from some individuals. Some of these lists intersected ...
Casey West
May 30, 2011 at 12:57 am
Jun 1, 2011 at 4:12 am -
Hello, I am getting the following error: bash: /var/www/html/bugzilla/email_in.pl: line 2: syntax error near unexpected token `(' bash: /var/www/html/bugzilla/email_in.pl: line 2: `use Cwd ...
Derek
May 26, 2011 at 6:11 pm
May 31, 2011 at 2:44 pm -
Hi, I have an array , @datas, and each element within @datas is a string that's made up of 6 digits with spaces in between like this “1 2 3 4 5 6”, so the array look like this @datas = ('1 2 3 4 5 ...
Eventual
May 27, 2011 at 8:18 am
May 29, 2011 at 2:17 am -
Hi Members, I am a linux system admin. I want to use perl as a command line like sed and awk. For example suppose , i need to extract IP Addr from a string or file using regrex i mean str="hello ip ...
Vishesh kumar
May 24, 2011 at 4:10 am
May 25, 2011 at 12:40 pm -
hi, I instaled my perl under the e:\r_software\perl. I wrote a hello world programme as below #! /usr/bin/perl print “Hello,word!\n”; and save it under e:\ as perl.p1 but when I run it with the ...
Gang Cheng
May 23, 2011 at 7:20 am
May 23, 2011 at 8:09 am -
hi, i need to catch "error" word in log file i used reg exp like this : if ($_ =~ /\berror\b/) is this correct ? --irfu
Irfan Sayed
May 18, 2011 at 7:06 am
May 18, 2011 at 4:50 pm -
hi I got a string like this $string = ' [a b c d]' i need to get a b c d in to a array called @all. i was was trying to so a split with delimiter '\s+' but still i get [a b c d] but i want a b c d ...
Agnello George
May 14, 2011 at 7:57 am
May 14, 2011 at 8:45 am
100 users for May 2011
Archives
- May 2016 (29)
- March 2016 (38)
- February 2016 (66)
- January 2016 (62)
- December 2015 (36)
- November 2015 (59)
- October 2015 (35)
- September 2015 (32)
- April 2015 (18)
- March 2015 (101)
- February 2015 (74)
- January 2015 (99)
- December 2014 (74)
- November 2014 (65)
- October 2014 (47)
- September 2014 (66)
- August 2014 (68)
- July 2014 (171)
- June 2014 (85)
- May 2014 (126)
- April 2014 (36)
- March 2014 (162)
- February 2014 (154)
- January 2014 (94)
- December 2013 (42)
- November 2013 (71)
- October 2013 (192)
- September 2013 (143)
- August 2013 (114)
- July 2013 (141)
- June 2013 (201)
- May 2013 (163)
- April 2013 (90)
- March 2013 (125)
- February 2013 (150)
- January 2013 (185)
- December 2012 (120)
- November 2012 (101)
- October 2012 (117)
- September 2012 (180)
- August 2012 (319)
- July 2012 (170)
- June 2012 (223)
- May 2012 (249)
- April 2012 (298)
- March 2012 (311)
- February 2012 (261)
- January 2012 (155)
- December 2011 (282)
- November 2011 (266)
- October 2011 (316)
- September 2011 (369)
- August 2011 (371)
- July 2011 (310)
- June 2011 (392)
- May 2011 (434)
- April 2011 (630)
- March 2011 (440)
- February 2011 (282)
- January 2011 (419)
- December 2010 (319)
- November 2010 (314)
- October 2010 (360)
- September 2010 (256)
- August 2010 (223)
- July 2010 (340)
- June 2010 (298)
- May 2010 (483)
- April 2010 (683)
- March 2010 (480)
- February 2010 (339)
- January 2010 (322)
- December 2009 (531)
- November 2009 (558)
- October 2009 (375)
- September 2009 (449)
- August 2009 (497)
- July 2009 (428)
- June 2009 (306)
- May 2009 (293)
- April 2009 (362)
- March 2009 (477)
- February 2009 (467)
- January 2009 (408)
- December 2008 (405)
- November 2008 (545)
- October 2008 (770)
- September 2008 (662)
- August 2008 (663)
- July 2008 (773)
- June 2008 (730)
- May 2008 (650)
- April 2008 (791)
- March 2008 (692)
- February 2008 (399)
- January 2008 (694)
- December 2007 (581)
- November 2007 (688)
- October 2007 (882)
- September 2007 (709)
- August 2007 (1,243)
- July 2007 (849)
- June 2007 (898)
- May 2007 (796)
- April 2007 (587)
- March 2007 (705)
- February 2007 (521)
- January 2007 (578)
- December 2006 (565)
- November 2006 (555)
- October 2006 (704)
- September 2006 (734)
- August 2006 (725)
- July 2006 (884)
- June 2006 (681)
- May 2006 (703)
- April 2006 (889)
- March 2006 (724)
- February 2006 (607)
- January 2006 (588)
- December 2005 (684)
- November 2005 (664)
- October 2005 (682)
- September 2005 (616)
- August 2005 (743)
- July 2005 (716)
- June 2005 (670)
- May 2005 (809)
- April 2005 (830)
- March 2005 (1,020)
- February 2005 (740)
- January 2005 (784)
- December 2004 (873)
- November 2004 (910)
- October 2004 (1,242)
- September 2004 (936)
- August 2004 (911)
- July 2004 (1,101)
- June 2004 (1,026)
- May 2004 (945)
- April 2004 (1,161)
- March 2004 (1,485)
- February 2004 (1,608)
- January 2004 (1,512)
- December 2003 (1,607)
- November 2003 (1,437)
- October 2003 (1,314)
- September 2003 (1,382)
- August 2003 (1,351)
- July 2003 (1,559)
- June 2003 (1,576)
- May 2003 (1,586)
- April 2003 (1,600)
- March 2003 (1,731)
- February 2003 (1,641)
- January 2003 (2,020)
- December 2002 (1,360)
- November 2002 (1,198)
- October 2002 (1,677)
- September 2002 (1,905)
- August 2002 (1,685)
- July 2002 (1,975)
- June 2002 (1,900)
- May 2002 (2,332)
- April 2002 (2,098)
- March 2002 (1,658)
- February 2002 (2,237)
- January 2002 (2,304)
- December 2001 (1,568)
- November 2001 (1,823)
- October 2001 (1,712)
- September 2001 (1,289)
- August 2001 (1,993)
- July 2001 (2,424)
- June 2001 (3,399)
- May 2001 (1,797)
- April 2001 (650)