FAQ

Search Discussions

87 discussions - 630 posts

  • 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 ScottPeter 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 ChavezOwen 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 KalraParag 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 nguyenAi 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
    JyotiJyoti
    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-ioSono-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 KatagiGurunath 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 EksteenWernher 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 xiaoHeyi 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-ioSono-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 swayZ 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 GeorgeAgnello 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 speedJet 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-aliGaleb 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 PURKAYASTHAANJAN 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 ...
    RajpreetRajpreet
    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 HoriTiago 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 AfginShlomit 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 rebeloMarcos 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 EksteenWernher 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 GeorgeAgnello 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 SayedIrfan 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 HoriTiago 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 GeorgeAgnello 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 speedJet 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 ...
    CityukCityuk
    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 sheepUniverse 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 PradhanSunita 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 AdhikaryAnirban 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 AdhikaryAnirban 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 WestCasey 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 GeorgeAgnello George
    Apr 20, 2011 at 9:50 am
    Apr 20, 2011 at 12:41 pm
  • Patrick DuprePatrick 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 ...
    OwenOwen
    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 GuttmanUri 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: ...
    CcCc
    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 kaushalPrashant 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 PradhanSunita 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 xiaoHeyi 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 MurphySean 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 PerryMarc 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 nguyenAi 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 FlanniganMike 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 baumeisterMark 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-ioSono-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 CollMariano 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 ...
    DermotDermot
    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 SivakumarBalachandran 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 ...
    MattMatt
    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 ...
    DavidDavid
    Apr 30, 2011 at 9:01 pm
    May 1, 2011 at 3:40 pm
Group Navigation
period‹ prev | Apr 2011 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions87
posts630
users123
websiteperl.org

123 users for April 2011

Rob Dixon: 49 posts Shlomi Fish: 46 posts Uri Guttman: 40 posts Shawn wilson: 27 posts Agnello George: 24 posts John W. Krahn: 23 posts Shawn H Corey: 20 posts Shawn H Corey: 18 posts Jim Gibson: 15 posts Peter Scott: 15 posts Sono-io: 14 posts Brian Fraser: 13 posts Paul Johnson: 11 posts Alan Haggai Alavi: 10 posts Randal L. Schwartz: 10 posts Chap Harrison: 9 posts Marcos rebelo: 9 posts Raymond Wan: 9 posts Tiago Hori: 9 posts Wernher Eksteen: 9 posts
show more
Archives