FAQ

Search Discussions

56 discussions - 369 posts

  • I'm trying to capitalize 3 and 4 letter words that contain only vowels or consonants, but not both. The code I've come up with is not working correctly. Given the string 'The Kcl Group', it should ...
    MarcMarc
    Sep 8, 2011 at 3:58 pm
    Oct 7, 2011 at 7:36 pm
  • Hi, without using CGI.pm how can i collect the values of a multiselect element? say for e.g.: < select name="hobbies" id="hobbies" multiple <option Reading Books</option <option Writing ...
    Rajeev PrasadRajeev Prasad
    Sep 30, 2011 at 5:31 am
    Oct 2, 2011 at 11:53 pm
  • My Code: use strict ; use warnings ; chomp($input = <STDIN ) ; I compile this but has a error. say:Globla symbol "@input" requires explicit package name at... What should i do?
    WilliamWilliam
    Sep 13, 2011 at 3:07 am
    Sep 15, 2011 at 1:36 pm
  • from linux: cut -f1,5- -d" " file |grep -v "^0" | sort -n to_file; <======this line: how to achieve this in perl? will below work, in perl? if ( ! -s $sourcedir/somefile ){ open(tmpFH,"<","file2"); ...
    Rajeev PrasadRajeev Prasad
    Sep 1, 2011 at 11:38 pm
    Sep 3, 2011 at 6:57 am
  • Hello, I am planning to write a very small stand alone application to write some file and I would like to know which is the best/recommended GUI library for Perl. I have read about wxPerl, GTK2, ...
    Francisco RivasFrancisco Rivas
    Sep 28, 2011 at 10:59 am
    Sep 29, 2011 at 7:13 pm
  • why do i need a web app? becuase of size of my project? I mean if it is going to be a very big website with lot of pages and tables etc. should i have a webapp? apache and cgi wont cut it? (alongwith ...
    Rajeev PrasadRajeev Prasad
    Sep 16, 2011 at 11:12 pm
    Sep 18, 2011 at 5:07 pm
  • Just a quick question on the need of "my" http://perldoc.perl.org/functions/my.html Was using an example from the beginning perl text in the example he gave he wasn't using strict but i have it on to ...
    FlebberFlebber
    Sep 5, 2011 at 3:55 am
    Sep 17, 2011 at 11:39 pm
  • Hi i am planning to use this module, but its version is 0.11 ! and author says it is beta quality. i am using Net::OpenSSH which is also below ver 1.0 but i have had no issues with it so far. does ...
    Rajeev PrasadRajeev Prasad
    Sep 10, 2011 at 11:35 pm
    Apr 25, 2012 at 2:11 pm
  • argh ... after just skipping the component that was causing the earlier error, i got further and then this: perl: symbol lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: ...
    Robert P. J. DayRobert P. J. Day
    Sep 21, 2011 at 11:25 am
    Sep 21, 2011 at 5:10 pm
  • Hello list members, John SJ Anderson has accepted the role of list moderator. He'll be responsible for the moderation of this list as he sees fit. If you have any questions about that you can ask him ...
    Casey WestCasey West
    Sep 30, 2011 at 8:24 pm
    Oct 6, 2011 at 4:34 pm
  • am trying to open a file but the problem is on the third line (open...) sub open_file { local $/ = undef; ($filevar, $filemode, $filename) = @_; open ($filevar, $filemode . $filename) || die ("Can't ...
    MaggsMaggs
    Sep 22, 2011 at 9:39 am
    Sep 23, 2011 at 4:41 pm
  • What would be the best way to omit any record when varible $dist is null or not 1 ? I am not sure my attempt is correct with the ternary operator with length function. It seems that $dist is just ...
    Chris StinemetzChris Stinemetz
    Sep 8, 2011 at 7:58 pm
    Sep 9, 2011 at 6:50 pm
  • friends, I am now trying to parse this string in this way... x= could be anything including special character string = xx:ABC,xx,x,x,x,"x,x,x",x,x,x,"x,x",x string0=ABC string2="x,x,x" string3="x,x" ...
    Rajeev PrasadRajeev Prasad
    Sep 2, 2011 at 10:33 pm
    Sep 5, 2011 at 6:24 am
  • Hi, I was getting this error message for one of my script. The reason came out out to be, I had not place a semi-colon at the end of try-catch block. try { something } catch some_exception { do ...
    Parag KalraParag Kalra
    Sep 20, 2011 at 12:12 am
    Sep 28, 2011 at 2:08 am
  • I have a file of test results it is formatted as follows: School |fname| lname | sub| testnum|score| grade|level MLK School | John | Smith | RE | Test 1| 95| A | Prof MLK School | John | Smith | RE | ...
    RobRob
    Sep 15, 2011 at 7:48 pm
    Sep 16, 2011 at 8:27 pm
  • i am doing like below: thecalledscript.pl needs a filename as argument. here is how i am calling it from a thecalling_script: { local @ARGV; @ARGV = ("$filename"); require "thecalledscript.pl"; } ...
    Rajeev PrasadRajeev Prasad
    Sep 15, 2011 at 4:07 am
    Sep 16, 2011 at 12:24 am
  • Hello All, Could someone explain what Perl does behind here? Assign to Substring.. substr($string, 0 , 5) = 'Greetings'; Regards, Emeka -- *Satajanus Nig. Ltd *
    EmekaEmeka
    Sep 6, 2011 at 12:04 pm
    Sep 8, 2011 at 11:56 am
  • Hello, I cannot understand, why perlcritic complains about this script: use strict; use warnings; use 5.012; open my $file, '<', 'file.txt'; my @array; while (<$file ) { chomp; my $value = $_*2; say ...
    Lubos KolouchLubos Kolouch
    Sep 30, 2011 at 10:25 am
    Oct 1, 2011 at 11:58 am
  • Hello list, I've been playing with perl going back to the 4.x days, mostly simple scripts to monitor server or application daemons, kick off and manage backups, or read log files.. While some of ...
    Frank KleinburgFrank Kleinburg
    Sep 28, 2011 at 2:33 pm
    Sep 29, 2011 at 1:39 pm
  • On my system @INC doesn't include /usr/share/perl/5.8.8/ even though there are nearly 1000 files there. Can anybody tell me where @INC is set. mike@/deb40a:~/perl perl -v This is perl, v5.8.8 built ...
    Mike McClainMike McClain
    Sep 23, 2011 at 4:58 am
    Sep 26, 2011 at 5:00 pm
  • hi, perl -e '$_ = "äö"; tr/"ä","ö"/"ae","oe"/; print $_."\n";' expected result: aeoe actual result: aeae why? thx matthias
    Matthias LeopoldMatthias Leopold
    Sep 8, 2011 at 8:34 am
    Sep 9, 2011 at 2:54 pm
  • Hi, I need to write a regex that matches any single Greek letter followed by a hyphen in a UTF-8 text file that is otherwise in English. How can I match the Greek alphabet (lower and upper case)? ...
    Hamann, T.D. (Thomas)Hamann, T.D. (Thomas)
    Sep 29, 2011 at 11:42 am
    Oct 10, 2011 at 11:51 am
  • All, I need help regarding install of CPAN modules in strawberry perl. I have a question about Perl connectivity to Teradata. Is it the correct email address? I have been using Active Perl 5.12 on ...
    Perl developerPerl developer
    Sep 21, 2011 at 1:31 pm
    Sep 27, 2011 at 6:55 pm
  • Hello I am willing to start maintaining a module or even a Perl package or library, so I would like to ask you all about the best way to start. I know that participating in mailing lists is a good ...
    Francisco RivasFrancisco Rivas
    Sep 20, 2011 at 7:55 am
    Sep 21, 2011 at 9:39 am
  • Hi all, I am running through a good book on Perl and am having some issues with a script I am trying to create for one of the practice exercises (I am teaching myself Perl for work). Just to let you ...
    Ryan MunsonRyan Munson
    Sep 12, 2011 at 6:56 pm
    Sep 12, 2011 at 9:42 pm
  • hi, i have following string. $val = "11.0.56.10000"; i need to write regular expression which should match only "56" and print please suggest regards irfan
    Irfan SayedIrfan Sayed
    Sep 10, 2011 at 5:23 pm
    Sep 11, 2011 at 9:13 am
  • In a module I have code that looks like this... sub add_widget { my $self = shift; my $new_widget = shift; push ( @{$self- {WIDGETS}}, $new_widget ); } sub get_widgets { my $self = shift; return ...
    Ron WeidnerRon Weidner
    Sep 3, 2011 at 7:55 pm
    Sep 5, 2011 at 12:46 pm
  • Hi, I am lost in my script, and would need to basic help please. I have got a file , separated by tabs, and the first column contain a chromosome number, then several other column with different ...
    Nathalie ConteNathalie Conte
    Sep 30, 2011 at 1:37 pm
    Oct 1, 2011 at 12:42 am
  • plz. advice why am i getting this error? I have checked: varilable outfile has proper path/filename array allrecords has data open(OUT_FH," ","$outfile"); print OUT_FH "@allrecords"; close OUT_FH; ...
    Rajeev PrasadRajeev Prasad
    Sep 15, 2011 at 12:38 am
    Sep 15, 2011 at 6:26 am
  • Hello All, I have written a blog on Perl. It just has basic stuff. I would want you to go through and comment. That way it will help me to re-enforce what I have learned. Regards, Emeka
    EmekaEmeka
    Sep 2, 2011 at 1:47 pm
    Sep 8, 2011 at 3:51 pm
  • hi, which of the two is better? thx. $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; or $value =~ s/%(..)/chr(hex($1))/ge; in both cases if the input string has \ in it, it is being ...
    Rajeev PrasadRajeev Prasad
    Sep 7, 2011 at 12:15 am
    Sep 8, 2011 at 6:31 am
  • Hi, checking CPAN for Moose gives me a list of about 2000 entries related directly or indirectly to Moose. Which of these modules do I have to install so that I can do some plain and simple OO ...
    Klaus JantzenKlaus Jantzen
    Sep 7, 2011 at 9:47 pm
    Sep 8, 2011 at 1:45 am
  • $string="alpha number='42'" $string=~s/.*\=// ; $string=~s/\'//g; to get 42 and not '42' can these two substitutions be combined? thank you.
    Rajeev PrasadRajeev Prasad
    Sep 20, 2011 at 12:57 am
    Sep 20, 2011 at 1:07 pm
  • 4

    hi

    Hi, I do have a doubt , Input: 1,2,3,4,5,6 output: 1-2,3-4,5-6 1-2,3-5,4-6 1-2,3-6,4-5 1-3,2-4,5-6 1-3,2-5,4-6 1-3,2-6,4-5 1-4,2-3,5-6 1-4,2-5,3-6 1-4,2-6,3-5 1-5,2-3,4-6 1-5,2-4,3-6 1-5,2-6,3-4 ...
    PradeepPradeep
    Sep 13, 2011 at 2:02 pm
    Sep 15, 2011 at 10:23 am
  • Hi All, I'm new to this group also for perl but nowadays I working around with Perl and I need some help. this my first thread please anyone can help me? i have a file contains the following data. ...
    Charith LokuBogahawattaCharith LokuBogahawatta
    Sep 3, 2011 at 3:42 am
    Sep 4, 2011 at 7:00 am
  • i'm not sure if the beginners list is the right place for this but i'll ask here anyway and someone can always point me elsewhere. i have a fully-updated, 64-bit ubuntu 11.04 system, with perl ...
    Robert P. J. DayRobert P. J. Day
    Sep 21, 2011 at 10:08 am
    Sep 21, 2011 at 10:30 am
  • To get highest index number on an array you use: $#array Doing this on an arrayref: $#{arrayref} I get a warning "$# is no longer supported". The program does continue. Apparently $# and $* were ...
    David JacopilleDavid Jacopille
    Sep 20, 2011 at 3:38 pm
    Sep 20, 2011 at 4:49 pm
  • In exercise 3-3 from the lama book. How do you make sure the user enters a number 1 thru 7? The simple program is: #!/usr/bin/perl use warnings; use strict; my @names = qw/ fred betty barney dino ...
    Chris StinemetzChris Stinemetz
    Sep 5, 2011 at 7:10 pm
    Sep 5, 2011 at 8:15 pm
  • Hello, According to the grep manual page I can use the -P option to use Perl regular expressions as follows: grep -P PERL_REGEX INPUT_FILE however, I cannot get the following pattern to match a ...
    Jon ForsythJon Forsyth
    Sep 3, 2011 at 9:01 pm
    Sep 4, 2011 at 6:35 am
  • This has become another long message. I am copying it to your email. I suspect that Jennifer is deleting my messages without reading them, as I sent her a text recently to ask her to contact Gma as ...
    Rob DixonRob Dixon
    Sep 19, 2011 at 5:52 pm
    Sep 19, 2011 at 6:47 pm
  • Hi, All: I want to test if a file exists or it is a link or not, the code is: #!/usr/bin/perl -w use strict; use File::Basename; use File::stat; use Fcntl ':mode'; my $elfobj = $ARGV[0]; sub strtrim ...
    YyqYyq
    Sep 16, 2011 at 9:53 am
    Sep 16, 2011 at 11:09 am
  • I have some segments start and end position on a reference sequence, I want to calculate the uncoverage region for the reference; for example: reference sequence length= 100, name [start,end] segment ...
    LemonLemon
    Sep 13, 2011 at 11:55 am
    Sep 13, 2011 at 2:55 pm
  • Hi There are two arrays @a = [[a,b,c]...[d,e]...[f]...[g,h]...] @b = [[...],[...,a,..,c,...,b...],[d],[e],[g...h]...] How can I make an arithmetic to detected that. if (element of array @a include by ...
    Zhu, QichaoZhu, Qichao
    Sep 8, 2011 at 4:02 pm
    Sep 9, 2011 at 4:41 pm
  • Hi, Could some please suggest any good online resources on learning CGI programming with Perl Also please let me know the goods for the same. Thanks, Parag
    Parag KalraParag Kalra
    Sep 8, 2011 at 7:17 pm
    Sep 9, 2011 at 4:30 am
  • Ganesh vigneshGanesh vignesh
    Sep 8, 2011 at 10:32 am
    Sep 8, 2011 at 10:54 am
  • I have a class named Widget in a file named Widget.pm. I have another class named Table in a file called Table.pm. Table extends Widget. --- package Widget; #file Widget.pm #insert a bunch of ...
    Ron WeidnerRon Weidner
    Sep 4, 2011 at 10:28 pm
    Sep 5, 2011 at 12:34 pm
  • All. How can I access my IMap messages from Google via Perll. I wish to extract the message body only. Sean
    Sean MurphySean Murphy
    Sep 3, 2011 at 11:31 am
    Sep 3, 2011 at 2:35 pm
  • Hi I have write the following code and Now I have been asked to write a unit test case for this code. But neither I have any idea how to write a unit test case nor I have ever experience with it. So ...
    Anirban adhikaryAnirban adhikary
    Sep 2, 2011 at 8:46 am
    Sep 3, 2011 at 2:33 pm
  • Hi, I am trying to run a make file from perl. For the make file to run, some environment variables need to be set. Usually I would use a batch file with the following setting SET ...
    Amish RughoonundonAmish Rughoonundon
    Sep 27, 2011 at 8:44 pm
    Sep 28, 2011 at 11:02 am
  • Trying to match the what is contained in $what 3 consecutive times. But I am getting the followoing error: Use of uninitialized value $_ in pattern match (m//) at ./ex9-1.pl line 7. The program: ...
    Chris StinemetzChris Stinemetz
    Sep 27, 2011 at 9:30 pm
    Sep 27, 2011 at 9:54 pm
Group Navigation
period‹ prev | Sep 2011 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions56
posts369
users72
websiteperl.org

72 users for September 2011

Rob Dixon: 37 posts Rajeev Prasad: 32 posts Shlomi Fish: 28 posts Uri Guttman: 25 posts Brandon McCaig: 22 posts Shawn H Corey: 19 posts Jim Gibson: 14 posts John W. Krahn: 12 posts Paul Johnson: 12 posts Jeff Pang: 10 posts Robert P. J. Day: 9 posts Chris Stinemetz: 8 posts Francisco Rivas: 8 posts Emeka: 7 posts Mike McClain: 6 posts Shawn Wilson: 6 posts John Delacour: 5 posts Marc: 5 posts Octavian Rasnita: 5 posts Randal L. Schwartz: 5 posts
show more
Archives