FAQ

Search Discussions

201 discussions - 936 posts

  • I really like Perl, but lately everywhere I seem to go and talk to say I shouldn't be learning Perl as it's old and Python is better. Since starting to learn Perl though, every other language I ...
    Gavin HenryGavin Henry
    Sep 28, 2004 at 11:21 am
    Oct 4, 2004 at 12:11 pm
  • Hi, I have a simple code that take currently fixed to take 3 input files and append each line of these files together. I wish to know is there anyway I can write the code more flexibly so it can ...
    Edward WIJAYAEdward WIJAYA
    Sep 10, 2004 at 2:51 pm
    Sep 11, 2004 at 8:55 am
  • I have a file with the following format Object1 "Description1" Object2 "Description" Object3 "Description" I would like the output in the following format object1<...tab.... Description1 ...
    PerlDiscuss - Perl Newsgroups andPerlDiscuss - Perl Newsgroups and
    Sep 29, 2004 at 1:25 pm
    Oct 4, 2004 at 5:56 pm
  • Hi all, What I would like to do is from a string that represents a Primary Navigation item on our menu e.g News & events create a filename. I firstly need to remove any invalid characters (including ...
    Johnstone, ColinJohnstone, Colin
    Sep 14, 2004 at 4:05 am
    Sep 24, 2004 at 6:02 am
  • Hi all, I have a bunch of old email addresses in a database and would like to make sure they are deliverable before I try to send anything to them. I don't need to find each and every bad one, just ...
    Denzil KruseDenzil Kruse
    Sep 30, 2004 at 7:59 pm
    Oct 5, 2004 at 5:33 am
  • Hai! My requirement is to open file with 666 permissions.[If fine doesn't exists it should get created ].Iam doing as below,is this ok. =========================== ...
    Arjun MallikArjun Mallik
    Sep 29, 2004 at 7:20 am
    Sep 30, 2004 at 12:25 pm
  • Hi, Does anybody know how to extract web content for each hour during one day period? thanks Budi
    Budi SantosaBudi Santosa
    Sep 15, 2004 at 12:07 pm
    Sep 15, 2004 at 8:43 pm
  • As a newbie, I have seen the statement "foo (bar)" mentioned in books and and even on this site. I haven't yet seen what this actually mean as I can assume that its just for examples. If I am wrong ...
    Jason corbettJason corbett
    Sep 8, 2004 at 4:43 pm
    Sep 9, 2004 at 2:14 am
  • Hi I have a file which contains a number of instances of the word "FINAL". I need to truncate all the instances of this word and create an output string of the rest of the words in the same line in ...
    Mk76Mk76
    Sep 21, 2004 at 12:47 am
    Sep 21, 2004 at 4:17 pm
  • Hi all, I'm having a look in to object oriented perl. Can anyone tell me what the difference between @_ and shift is? As far as I know there is no difference except "shift" removes the parameter from ...
    Graeme McLarenGraeme McLaren
    Sep 30, 2004 at 7:21 pm
    Oct 1, 2004 at 12:46 am
  • Hi Perlers, I'm trying to check on the status of a process by sending a SIGZERO to it with kill(). This SHOULD (according to the docs I've been reading) return false if the process died. But mine is ...
    Errin LarsenErrin Larsen
    Sep 24, 2004 at 2:18 pm
    Sep 24, 2004 at 3:57 pm
  • All, I have this ftp code sub ftpme { my $remotehost="ftp.digitalarchives.com"; my $user="cb100524"; my $pass="xxxxxxx"; my $data=$scratchtps; my $ftplog="/usr/local/log/ftp_IrMt_scratchtapes.log"; ...
    DbsmithDbsmith
    Sep 15, 2004 at 10:11 pm
    Sep 18, 2004 at 6:03 am
  • Hi, I have thre HoAs with the same key but different value. How can I efficiently join the HoA: my %HoA = (key1 = ['A',1]); my %HoA2 = (key1 = ['B',2]); my %HoA3 = (key1 = ['C',2]); into: %HoA = ...
    Edward WijayaEdward Wijaya
    Sep 30, 2004 at 4:53 pm
    Oct 1, 2004 at 2:56 pm
  • Hi, I'm trying to extract all four-digit numbers from a string in one fell swoop, but I can't seem to come up with the proper regexp. This is my first time using /g in a match so maybe there's a ...
    Chap HarrisonChap Harrison
    Sep 30, 2004 at 2:38 pm
    Sep 30, 2004 at 4:02 pm
  • Hello All: I searched CPAN and parts of the Win32:: but could not find an answer. Is there a module, etc to add/remove permissions on an NTFS folder? Thanks Birl
    S.A. BirlS.A. Birl
    Sep 27, 2004 at 4:05 pm
    Sep 28, 2004 at 8:29 pm
  • Hi pals, use strict; use warnings; my $foo = 'test'; my @bar = ( 'foo', '[%foo%]', 'bar' ); my @list = (); foreach my $x (@bar) { $x =~ s/^\[%([^%]+)%\]$/${$1}/g; print $x . " "; } -- ...it gives me ...
    Ing. Branislav GerzoIng. Branislav Gerzo
    Sep 15, 2004 at 9:39 pm
    Sep 16, 2004 at 1:16 pm
  • Hello list, I've seen this done, but am not sure what its called or where to start looking... Instead of the output of a script via CLI being: # perl script.pl line1 line2 line3 etc # I'd like the ...
    JupiterHost.NetJupiterHost.Net
    Sep 14, 2004 at 9:23 pm
    Sep 15, 2004 at 9:40 pm
  • Hi, I have this HoH: my %HoH = ( firstkey = { A = 'blabla', B = 'dadada', C = 'tititi',} ); generated with $HoH{$fkey}{$alpha}=$text; how can I access the value of the first key, so that it gives: ...
    Edward WijayaEdward Wijaya
    Sep 29, 2004 at 1:38 pm
    Sep 29, 2004 at 3:35 pm
  • Hi, Suppose I have a data file that contain these lines: output1 output2 when I run the code below with: perl mycode.pl -f datafile it gives: Trial 1 output1 output2 Trial 2 instead of: Trial 1 ...
    Edward WijayaEdward Wijaya
    Sep 28, 2004 at 2:38 pm
    Sep 29, 2004 at 2:34 pm
  • Hi perl-people, I'm not sure if this is beginners stuff, but I'll post here 'cause it's the only list I'm subscribed to at the moment. I'm writing a script that will daemonize itself, and then watch ...
    Errin LarsenErrin Larsen
    Sep 23, 2004 at 4:23 pm
    Sep 24, 2004 at 10:58 pm
  • The SMTP Pgms are not working on my windows environment. I am using Active PERL 5.8. please let me know whether I need to install SMTP module, if so where I can find the module for windows. Do I need ...
    Anish Kumar K.Anish Kumar K.
    Sep 16, 2004 at 12:37 pm
    Sep 16, 2004 at 2:33 pm
  • Hi, If I have this hash: %myhash = { '4 atc' = 'TGCGCatcGA', '5 ctg' = 'AGctgTGTTT', '3 NO MOTIF' = 'TCCGTGCGCT', '1 NO MOTIF' = 'ATGGTTAGGG', #need to splice this '2 caa' = 'GAAGcaaGGC' }; How can I ...
    Edward WIJAYAEdward WIJAYA
    Sep 6, 2004 at 1:39 pm
    Nov 8, 2004 at 10:11 pm
  • Hi, Why my code below fail to open and print the file contents when I do: perl mycode.pl -f filename Regards, Edward WIJAYA SINGAPORE __BEGIN__ use strict; use warnings; use Getopt::Std; use vars ...
    Edward WijayaEdward Wijaya
    Sep 28, 2004 at 10:52 am
    Sep 29, 2004 at 1:27 am
  • Hi! I need to match an expression and its reverse to a very long string. When a match occurs all matching should stop and the position of the match should be returned. Question1: can I match the ...
    C rC r
    Sep 23, 2004 at 12:06 pm
    Sep 24, 2004 at 9:42 am
  • Hallo , ich habe ein für mich seltsames Problem: Mit dem untenstehenden Programmteil habe ich früher (meine ich zumindest) erfolgreich eMails nebst CC versendet. Seit mir unbekannter Zeit wird aber ...
    Reinhold RiedersbergerReinhold Riedersberger
    Sep 9, 2004 at 11:38 pm
    Sep 15, 2004 at 8:40 am
  • Hi, How can I change the value of this array: @array = ['1','2','3']; #which contain "string" numeric to @arrayNum = [1,2,3]; #as pure numeric Regards, Edward WIJAY
    Edward WIJAYAEdward WIJAYA
    Sep 14, 2004 at 1:35 pm
    Sep 14, 2004 at 5:27 pm
  • Hi, Suppose I have these two arrays: @arr1 = ('GATGGATTAAAGGAGAGGTACTTACAGG', 'CGCCCAAGAGGCCAGAGCGGAGCGGGGA', 'CGTTAATGCATTAATTTTAGTTAAAACT'); @arr2 = ('tcctcta', 'aggccac', 'agctgcg'); Is there any ...
    Edward WijayaEdward Wijaya
    Sep 3, 2004 at 3:34 am
    Sep 3, 2004 at 2:39 pm
  • I'm trying to print a block of code using 'print <<LABEL; but am getting an error stating perl can't find the termination label. Test code and error as follows: #!/usr/bin/perl print <<TEST; this is ...
    Murphy, Ged (Bolton)Murphy, Ged (Bolton)
    Sep 30, 2004 at 12:19 pm
    Oct 1, 2004 at 12:03 am
  • **Sorry, if this is a repeat. Wasn't sure if the mail went through. If you already replied can you re-send it to my e-mail address above as well? Thanks!*** I have two sets of data that have been ...
    Michael RobesonMichael Robeson
    Sep 17, 2004 at 8:05 pm
    Sep 24, 2004 at 2:39 pm
  • Hello! I am thinking about making clear and short script to rotate array, let's say: input: @list = (1 .. 20); $start = 10; #starting position $values = 10; #how much values in result how to get ...
    Ing. Branislav GerzoIng. Branislav Gerzo
    Sep 21, 2004 at 8:58 pm
    Sep 22, 2004 at 6:43 am
  • Howdy group, This seems like it should be simple, but I'm a bit stumped on the best way to do this: I want to add a hash to a hash, With arrays you could: push @arr2, @arr2; but what is the best way ...
    JupiterHost.NetJupiterHost.Net
    Sep 19, 2004 at 10:57 pm
    Sep 20, 2004 at 2:40 am
  • Hi All, I am trying to build a HoH, who's keys will be referances to products. However it seems if $e [ vendor value] is the same, the hash get's recreated instead of appending a product to already ...
    MgolandMgoland
    Sep 16, 2004 at 3:20 pm
    Sep 17, 2004 at 4:57 pm
  • All, In my code I am not understanding why my in place edit does not work? Here is my code: please help! thanks, use strict; use diagnostics; use warnings; my stps="/usr/local/log/scratchtps"; open ...
    DbsmithDbsmith
    Sep 15, 2004 at 11:12 pm
    Sep 17, 2004 at 3:35 pm
  • Hi all, straight out of the Learning Perl book (3rd edition, page 275) is this code: my @numbers; push @numbers, split while < ; foreach (sort { $a <= $b } @numbers) { printf "%20g\n", $_; } This ...
    Errin LarsenErrin Larsen
    Sep 14, 2004 at 9:30 pm
    Sep 15, 2004 at 10:10 am
  • Hi, I'm new to perl and I'm trying to write a simple program that will take commands from user. I would like to provide command completion. Currently I have: use Term::ReadLine; use Term::Complete; ...
    ManishManish
    Sep 10, 2004 at 5:33 pm
    Sep 13, 2004 at 11:14 pm
  • hi to all, I've got a weird problem using an external program that get the input from "stardard input" I've got to call it (and easily do this with "system('myprogramname')" but I've to feed this ...
    Francesco del VecchioFrancesco del Vecchio
    Sep 7, 2004 at 9:15 am
    Sep 7, 2004 at 9:55 pm
  • Does anyone have a brilliant idea how to prevent my windows NT screensaver from starting using perl? eg. is it possible to move the mouse pointer if it hasn't been moved for the last five minutes or ...
    JPJP
    Sep 2, 2004 at 4:03 pm
    Sep 3, 2004 at 11:43 am
  • Hi! I am looking for a simple Perl way to decode the following, which can be any grouping of number 2-8,9,11,18-21 Into 2,3,4,5,6,7,8,9,11,18,19,20,21 Any Ideas? Thanks for Your Time and Help, Jerry
    Jerry PrestonJerry Preston
    Sep 1, 2004 at 5:01 am
    Sep 1, 2004 at 9:12 am
  • Hello there! I am wondering for the subject on Windows platform. Now I try to choose the perl editor wich could be most matched for me. I am testing the 1 - SciTE, 2 - ActiveState Komodo 3.0, 3 - ...
    Nicolay A. VasilievNicolay A. Vasiliev
    Sep 27, 2004 at 5:44 am
    Sep 28, 2004 at 8:00 am
  • This works and does what I want it to: perl -e '@x = split("\\.", "a.b.c"); print $x[0];' Why does not this work? perl -e 'print @{split("\\.", "a.b.c")}[0];' Is there a compact way to take a slice ...
    Siegfried HeintzeSiegfried Heintze
    Sep 23, 2004 at 7:43 pm
    Sep 23, 2004 at 10:48 pm
  • Hi, I am very newbie for using the function 'pack', and here I have some questions : Q1. Can I expect that pack can do this for me ? - compress a text file in smaller size - besize template 'aAuU', ...
    BeeBee
    Sep 12, 2004 at 10:28 pm
    Sep 13, 2004 at 5:20 pm
  • Hello once more :-), why does the CC-line not send any mail? The To-Line is well. And the CC-Line appears in the first mail. But there will not send any mail to the cc-address. What is there wrong? ...
    Reinhold RiedersbergerReinhold Riedersberger
    Sep 9, 2004 at 11:48 pm
    Sep 10, 2004 at 4:39 am
  • I am successful insert data in MySQL with code below: #!/usr/bin/perl -w use strict; use DBI(); use CGI; use HTML::Template; # Connect to the database. my $dbh = DBI- ...
    Maxipoint Rep OfficeMaxipoint Rep Office
    Sep 7, 2004 at 8:59 pm
    Sep 8, 2004 at 2:41 pm
  • Hi! I thought the following script: #!/usr/bin/perl -T use strict; use warnings; use CGI; use CGI::Carp qw(fatalsToBrowser); my $cgi = new CGI; my $parameters = $cgi- Vars(); get_params($parameters); ...
    Kiarra ParkerKiarra Parker
    Sep 4, 2004 at 6:49 pm
    Sep 5, 2004 at 7:33 pm
  • Hello Gurus, In a script I have a piece of code as such:- ************* snip************** my $filedate =~ s/(\d+)//g; ************* snip end ******* The data I am parsing looks as such :- ********** ...
    Denham EvaDenham Eva
    Sep 6, 2004 at 12:37 pm
    Nov 9, 2004 at 7:41 pm
  • Hi, I have a need to store replacement text for a regex substitution in a variable. In other words, I have code in a perl script like so:: $foo =~ s/(.*)bar(.*)/$replacement/g; The $replacement ...
    William Lewis BrownWilliam Lewis Brown
    Sep 30, 2004 at 1:50 pm
    Oct 13, 2004 at 3:14 pm
  • just wondering what a user of Perl may be called? "Perler"?? Theres got to be some fancy name for it. Perl is not just another programming language.. I reckon its much more like a religion with ...
    Sano BabuSano Babu
    Sep 30, 2004 at 4:07 pm
    Oct 1, 2004 at 11:01 am
  • How can i rename any file using PERL?...Where should i start?..Where i can find any tutorial? This e-mail and any attachments may contain confidential and privileged information. If you are not the ...
    Roime bin PuniranRoime bin Puniran
    Sep 30, 2004 at 9:18 am
    Sep 30, 2004 at 4:58 pm
  • Hi Perlers, I've seen a lot of tutorial or example code dealing with the POSIX module that does something like this: use POSIX ':sys_wait_h'; What does the ':' mean/do in the above line? --Errin
    Errin LarsenErrin Larsen
    Sep 29, 2004 at 3:19 pm
    Sep 29, 2004 at 4:37 pm
  • I've been using the DB_File module lately and I've run into a problem. I can create a tied hash and populate it with 23 million records. When I use another script to open the same file and tie a hash ...
    Rob BentonRob Benton
    Sep 27, 2004 at 2:06 pm
    Sep 27, 2004 at 7:23 pm
Group Navigation
period‹ prev | Sep 2004 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions201
posts936
users181
websiteperl.org

181 users for September 2004

Chris Devers: 79 posts Wiggins d'Anconia: 62 posts Gunnar Hjalmarsson: 53 posts Errin Larsen: 46 posts John W. Krahn: 45 posts Bob Showalter: 35 posts Jenda Krynicky: 32 posts JupiterHost.Net: 26 posts Gavin Henry: 22 posts Edward WIJAYA: 20 posts Ing. Branislav Gerzo: 16 posts Jeff 'japhy' Pinyan: 15 posts Dbsmith: 14 posts Charles K. Clarkson: 12 posts Bee: 11 posts Anish Kumar K.: 10 posts Johnstone, Colin: 10 posts Jose Alves de Castro: 10 posts Roime bin Puniran: 10 posts Jim: 9 posts
show more
Archives