Search Discussions
-
I remember when Casey West and Kevin Meltzer started this list. Casey was very specific on-line and in person about it being a place where newcomers could ask questions without being flamed. The FAQ ...
Peter Scott
Apr 19, 2011 at 3:00 pm
Apr 27, 2011 at 12:15 pm -
I'm writing a script for work that navigates users through a complex decision-making tree, where decisions are made based on some fairly in-depth processing of data entered by the user. The script ...
Owen Chavez
Apr 14, 2011 at 3:16 am
Apr 17, 2011 at 12:34 am -
Hi, I am not sure if this can be done. But just asking it out of curiosity. I have written this snippet. use strict; use warnings; my $var = '$str abc_xyz'; my $str; for(my $i=1;$i <= 5; $i++){ $str ...
Parag Kalra
Apr 17, 2011 at 6:07 pm
Apr 19, 2011 at 8:26 pm -
A population of 20 cows, each one has age and weight (known). Device this population into 2 group, each group has 10 cows. Questions: How to pick a cow on each group so that a distribution of AGE and ...
Ai nguyen
Apr 19, 2011 at 11:29 pm
Apr 21, 2011 at 10:28 pm -
Hello All, Please give me any link or any tutorial which will be helpful for preparation of PERL interview. Thanks in advance. ---- Jyoti
Jyoti
Apr 21, 2011 at 4:49 am
Apr 25, 2011 at 5:15 pm -
I realize that this list may not be the best, or even most appropriate, place to ask this question, but I'm just so curious that I'm losing sleep over it! =;) What is the best way to embed perl in an ...
Sono-io
Apr 22, 2011 at 5:11 pm
Apr 23, 2011 at 5:46 am -
hi .. i am new to perl .. i have a input file something pasted as below .. 16 50 16 30 16 23 17 88 17 99 18 89 18 1 .. -- and i want the output something like this : 16 50 30 23 17 88 99 18 99 1 i.e ...
Gurunath Katagi
Apr 16, 2011 at 6:06 am
Apr 17, 2011 at 11:52 am -
Hi, How do I compare the column 1 in %hash2, with column 1 in %hash1 so that when a match is found to append or concatenate the hash key (column 1) and it's associated values from %hash2 with that of ...
Wernher Eksteen
Apr 3, 2011 at 9:58 am
Apr 5, 2011 at 1:13 am -
Hello all, In the source code of some bioperl modules, I saw method names start with "_". For instance, _print, in the following lines: $self- _print($buff); $self- _print("\n"); But I couldn’t find ...
Heyi xiao
Apr 28, 2011 at 1:16 am
Apr 28, 2011 at 3:17 pm -
Hello, I'm wanting to test for the presence of two or more words, from a short list of words, in an address input field in a Perl shopping cart, i.e. both 'box' and 'street', or both 'apo' and ...
Sono-io
Apr 8, 2011 at 9:57 pm
Apr 10, 2011 at 10:13 am -
the expression only contains number and"+*()" the form of list is like[op,node1,node2...],op is "+"or"*",node can be a number or a child list. e.g :1*2+3*4*(5+6) [ '+', ['*', '1', '2'], ['*', '3', ...
Z sway
Apr 24, 2011 at 12:08 pm
May 1, 2011 at 4:32 pm -
Hi All is there a better way of writing this script my @resultss = qw( 0 1 2 3 4 5 ) ; foreach ( @resultss) { if ( defined( $jvalue{$_}){ $status .= $jvalue{$_} ; } } Thanks -- Regards Agnello D'souza
Agnello George
Apr 29, 2011 at 7:29 am
Apr 29, 2011 at 1:03 pm -
Hi, Please could you advice, how can i write a regular expression for the line below to capture 0079 and 6000097000029260057253303030373 0079 Not Visible 6000097000029260057253303030373 i tried this ...
Jet speed
Apr 27, 2011 at 10:48 am
Apr 27, 2011 at 9:32 pm -
Hi, I'm trying to parse a table containing information about genes in a bacterial chromosome. Below is a sample for one gene, and there's about 4500 such blocks in a file: gene_oid Locus Tag Source ...
Galeb abu-ali
Apr 23, 2011 at 2:27 pm
Apr 26, 2011 at 12:48 am -
Hi, Is there any way to run a shell command from within a perl script and capture the output in, say, an array? One can run a shell command through the system function. But system itself just returns ...
ANJAN PURKAYASTHA
Apr 5, 2011 at 1:24 pm
Apr 6, 2011 at 3:53 am -
Greetings, Requirement goes like this. I have perl script reading from a MQ Series queue. This queue has messages in form of XML.For exmpale 1 message is like - <CLIENT_INFO <LOCATION New York ...
Rajpreet
Apr 11, 2011 at 6:10 pm
Apr 21, 2011 at 1:34 am -
Hi List, I have been trying to follow one of code indentation guidelines from wikipedia, but I have some questions that I can find answers, I would appreciate if someone could help me or point me ...
Tiago Hori
Apr 23, 2011 at 1:09 am
Apr 25, 2011 at 8:53 am -
Hi I need to write regular expression that will capitalize the first letter of each word in the string. Word should be word that her length is greater or equal to 3 letters exclude the words 'and' ...
Shlomit Afgin
Apr 12, 2011 at 10:39 am
Apr 15, 2011 at 4:35 am -
Hi all I have a code like: foreach my $key ( ... ) { my $sub = "get_$key"; $self- $sub; ... } If I can do this, I can also do it without the variable $sub. What is the syntax? please Best Regards ...
Marcos rebelo
Apr 12, 2011 at 1:27 pm
Apr 13, 2011 at 3:53 am -
Hi, From the folowing list is a result of the @power array, when run through the foreach loop: Pseudo name=emcpowerd 1 lpfc sdba SP A7 active alive 0 0 1 lpfc sddd SP B7 active alive 0 0 3 lpfc sdfg ...
Wernher Eksteen
Apr 1, 2011 at 6:52 pm
Apr 3, 2011 at 7:06 pm -
Hi All I got a hash like this : my %retrn = ( 0 = { 0 = ' successful<br '}, 1 = { 1 = 'insufficient<br '}, 2 = { 2 = 'txtfile missing<br '}, 3 = { 3 = 'bad dir <br '}, ); ( i know this hash looks ...
Agnello George
Apr 29, 2011 at 8:47 am
Apr 29, 2011 at 9:26 am -
hi, i have following code. $target = "abc,xyz"; print "$target\n"; $target =~ s/,/\s/g; print "$target\n"; i need to replace "comma" with whitespace for string "abc,xyz" the output shud be "abc xyz" ...
Irfan Sayed
Apr 28, 2011 at 2:05 pm
Apr 28, 2011 at 4:17 pm -
Hey Guys, I am a real beginner so at the risk of being slammed by some, I wanted to get some input. I was trying to do exercise 5 of the 5th edition of learning perl: It is based on exercise 4, so I ...
Tiago Hori
Apr 21, 2011 at 7:03 pm
Apr 22, 2011 at 12:44 am -
Hi I am trying my hand in CGI , i have script that runs svn list on-submit which obviously takes 30 to 40 secs for the page to load , i plan to use a ajax loader to be printed untill those 30 to 40 ...
Agnello George
Apr 18, 2011 at 12:18 pm
Apr 19, 2011 at 8:03 am -
Hi, I need help in formatting ouput from system command, i could'nt figure out a way to format output from system command. appreciate your help with this, the details are below. hlis3 is file with ...
Jet speed
Apr 14, 2011 at 9:23 pm
Apr 17, 2011 at 12:37 am -
Dear All, This is more of a generic question on regular expressions as my program is working fine but I was just curious. Say you have the following URLs: http://www.test.com/image.gif ...
Cityuk
Apr 10, 2011 at 11:06 am
Apr 12, 2011 at 10:24 pm -
What's the best IDE in windows 7 for a beginner aiming at using Bioperl? Speed may be the first thing considered, and it will be better if it can download modules automatically. Thanks a lot!!!!
Universe sheep
Apr 7, 2011 at 12:28 pm
Apr 10, 2011 at 1:39 pm -
Hi All 1. Can anybody guide me to write a regular expression to verify correct Email address ? 2. I have written a regular expression to verify correct IP address : print $ipadd if ($ipadd =~ ...
Sunita Rani Pradhan
Apr 9, 2011 at 6:12 pm
Apr 10, 2011 at 12:17 am -
Hi list Can anybody please explaing the meaning of the following regular expression my $x = '12abc34bf5'; @num = split /(a|b)+/, $x; print "NUM=@num\n"; NUM=12 b c34 b f5 Does it mean split the ...
Anirban Adhikary
Apr 8, 2011 at 7:12 am
Apr 8, 2011 at 1:44 pm -
Hi List I am trying to parse the following file and load it into a hash. File Structure DN: 2570764 (PORTED-IN) TYPE: SINGLE PARTY LINE SNPA: 438 SIG: DT LNATTIDX: 4 XLAPLAN KEY : 438CAUC1 RATEAREA ...
Anirban Adhikary
Apr 1, 2011 at 11:00 am
Apr 1, 2011 at 1:05 pm -
Hi List, It's hard for me to accept this mailing list has been around for ten years! http://www.nntp.perl.org/group/perl.beginners/2001/04/msg1.html The catalyst for creating this list was my ...
Casey West
Apr 22, 2011 at 1:38 pm
Apr 27, 2011 at 11:59 am -
Hi I have script where i need to go in to a directory and put all files in to a array if ( chdir ("$dirtemp") ) { find (sub { push @all , $File::Find::name}, "."); my %selectfiles = qw( ...
Agnello George
Apr 20, 2011 at 9:50 am
Apr 20, 2011 at 12:41 pm -
Patrick Dupre
Apr 8, 2011 at 1:18 am
Apr 10, 2011 at 9:57 am -
There is a person on the Internet using this to advise his email address. perl -le "print scalar reverse qq/moc.liamg\100halbhalb/" I am intrigued as to how "001\" becomes "@" What should I be ...
Owen
Apr 27, 2011 at 9:13 am
Apr 28, 2011 at 2:01 am -
hi all, normally i wouldn't announce module releases on the beginner's list but i think this is appropriate. i have released Template::Simple .04 to cpan. many times you see mention of using ...
Uri Guttman
Apr 25, 2011 at 8:12 am
Apr 25, 2011 at 5:04 pm -
Hi, I have two strings that shows different times and I want to find the difference in # of hours. In PHP, there's strtotime(), but there isn't one in Perl that I can find. The string format is: ...
Cc
Apr 21, 2011 at 9:37 am
Apr 21, 2011 at 6:41 pm -
Hi Di, Yesterday i tried a "Hello world" program in perl using cgi script on a windows platform. The steps i followed were: 1. Made a directory in "C:" and named it "cgi-bin" 2. Wrote my source code ...
Prashant kaushal
Apr 11, 2011 at 11:05 am
Apr 14, 2011 at 4:47 am -
Hi All I have following simple code : =================== use warnings; sysopen(DATA,"list1.txt",O_RDWR|O_TRUNC); @array1=<DATA ; foreach $i (@array1){ $i =~ s/d|b/G/ig; print DATA $i; } close DATA; ...
Sunita Rani Pradhan
Apr 10, 2011 at 8:04 am
Apr 10, 2011 at 1:16 pm -
Hello all, Is there any convenient way to check the documentation (and source code) for individual method of an installed module? For instance, bioperl has a module called Bio::Seq. I may simply ...
Heyi xiao
Apr 26, 2011 at 12:16 am
Apr 26, 2011 at 3:44 pm -
Hi all. I am starting another project and I wish to know the best method of creating a web page via Perl. I don't want to reinvent the wheel here. The perl script must generate plain 4.0 HTML code. I ...
Sean Murphy
Apr 23, 2011 at 8:14 am
Apr 23, 2011 at 5:45 pm -
Hi, I was parsing a collection of HTML files where I wanted to extract a certain block from each file, like this: my $accumulator; my $capture_counter; while ( < ) { if ( /<h1 /.../labelsub/ ) { ...
Marc Perry
Apr 21, 2011 at 5:42 pm
Apr 21, 2011 at 7:47 pm -
Hi there, How to write a device funciton without using a '/' operator sub device_now($a, $b){ my ($a, $b)=@; <don't use $result=$a/$b; return $result; } &device_now(6,3);
Ai nguyen
Apr 19, 2011 at 11:20 pm
Apr 20, 2011 at 8:35 pm -
4
WMI
I used to run this script and it worked fine. Now is gives error Can't locate WMI.pm in @INC . . . Sure enough the module is gone and I can't find it in ActiveState ppm. Anybody know what happened to ...Mike Flannigan
Apr 16, 2011 at 12:57 pm
Apr 18, 2011 at 1:35 am -
Hi, I am trying to move array elements (populated from the <STDIN ) into a hash as pairs [i] and [i + 1] and then print them out using the code below. If I enter "bob" as the first element and hit ...
Mark baumeister
Apr 14, 2011 at 7:30 pm
Apr 17, 2011 at 5:22 pm -
Hello, I read somewhere that it's bad practice anymore to call a subroutine like this: &subroutine(); I've also read where it's faster to call a sub like this: &subroutine; than it is to call like ...
Sono-io
Apr 13, 2011 at 11:07 pm
Apr 14, 2011 at 6:31 pm -
Hello everyone, Here's what I need to do: I need to take each of the words in one List1, search for their presence (or not) in a second List2 and make a new list with all the words in both. These are ...
Mariano Loza Coll
Apr 9, 2011 at 6:53 pm
Apr 10, 2011 at 12:00 pm -
Hello All, I have a issue when I attempt to run a script on one host (B) that is called by ssh from other host (A). On host B, I have the script in /usr/local/bin/stuff.pl. The script has the ...
Dermot
Apr 6, 2011 at 2:45 pm
Apr 7, 2011 at 3:04 pm -
Hi, I am trying to learn hashes in perl. I created an hash variable with 4 keys. I tried printing the keys in the hash by:(hash variable is %machines) foreach $key (keys %machines) { print "$key\n"; ...
Balachandran Sivakumar
Apr 6, 2011 at 1:23 pm
Apr 6, 2011 at 5:51 pm -
I am looking for a perl function or easy way to shorten a long string if its over X characters. Say I have: "Doe, John; 56943 Walnut Drive; SomeCity, NY" It messes up the display of my html form. So ...
Matt
Apr 5, 2011 at 9:25 pm
Apr 6, 2011 at 4:14 pm -
Hi. I'm trying to insert on-screen sequential numbers (in locally saved web documents) to let non-web designers comment on the elements/tags. Additionally, these numbers act as a ...
David
Apr 30, 2011 at 9:01 pm
May 1, 2011 at 3:40 pm
123 users for April 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)