FAQ

Search Discussions

228 discussions - 1,020 posts

  • Hello, I am working on a module that needs to import a function from Digest::MD5. The reasoning on this is that its a subclass so it'd be handy to be able to use() it and export functions from the ...
    JupiterHost.NetJupiterHost.Net
    Mar 31, 2005 at 6:41 pm
    Apr 15, 2005 at 12:03 am
  • All, Can someone explain this code line by line? Obviously I understand most of it but lines 4, 5, 6 and 10 I am fuzzy. For line 4: if ($query) ..... if what? Here I would expect to see if ( -s ...
    DbsmithDbsmith
    Mar 1, 2005 at 3:32 pm
    Mar 5, 2005 at 2:04 am
  • This is correctly printing '7' but '$a- [$#{@$a}]' seems to be encripted code. Can I write this in a cleaner way?
    Marcos RebeloMarcos Rebelo
    Mar 10, 2005 at 2:52 pm
    Mar 15, 2005 at 12:57 am
  • Hi, I'm writing a little script for removing "rustle" from a log file from chat channels, in order to do linguistic research on them. I took the file and tied it with Tie::File, in order to easily ...
    Hendrik MarynsHendrik Maryns
    Mar 6, 2005 at 3:36 pm
    Mar 8, 2005 at 3:44 am
  • Hi all, I have a requirement to call a perl script within another and take the output for example { .... $script = foo(); $output = `perl $script $a $b $c `; do_someting($output); ... } The above ...
    Ramprasad A PadmanabhanRamprasad A Padmanabhan
    Mar 17, 2005 at 11:32 am
    Mar 18, 2005 at 3:36 pm
  • All, Here is my code: use strict; use warnings; my $dev = qw/original1/; my $dev1 = qw/clinical1/; my $fout = qq(/usr/local/log/fuji.out); open (OUT, "+ $fout") || die "unable to open file: $fout ...
    DbsmithDbsmith
    Mar 11, 2005 at 9:15 pm
    Mar 13, 2005 at 2:54 pm
  • DbsmithDbsmith
    Mar 5, 2005 at 4:06 am
    Mar 9, 2005 at 2:31 pm
  • Hi :) I am still very new to perl (and programming) and am getting stuck with regular expressions. I have a text file in which I want to find, then print to screen all lines beginning with "?" and ...
    Brett WilliamsBrett Williams
    Mar 26, 2005 at 8:33 am
    Apr 12, 2005 at 6:38 am
  • Hi, I have the following code that uses Inline::C to compute factorial. The problem is that whenever I use large N ( 30) it began to return "INF". I thougtht my C implementation already cater large ...
    Edward WijayaEdward Wijaya
    Mar 26, 2005 at 9:12 am
    Mar 28, 2005 at 9:59 am
  • I'm trying to come up with a regex for my IRC bot that detects 1337 (in order to kick them from the channel). I can't seem to come up with one that will have few false positives but also work most of ...
    Andrew GaffneyAndrew Gaffney
    Mar 24, 2005 at 1:47 am
    Mar 25, 2005 at 10:45 am
  • Hi All, I am trying to write a simple script that will analyze a Postfix maillog. The basic idea is that you give it an e-mail address and it will print all the relevant lines. In order to achieve ...
    Nick ChettleNick Chettle
    Mar 16, 2005 at 12:00 pm
    Mar 22, 2005 at 12:25 pm
  • Hi, I need to modify some existing code. The below line checks a file I'm reading in and does a search/replace based on the match. Currently I'm looking for... if (/00000 set/) { ...etc. Because the ...
    FlashMXFlashMX
    Mar 11, 2005 at 2:34 pm
    Mar 11, 2005 at 6:16 pm
  • Hello, I have using the following lines to run through an array (@servers) and run a function on each one. But I want to avoid running the function twice if an entry exist twice. I got the following ...
    Michael GaleMichael Gale
    Mar 30, 2005 at 10:53 pm
    Apr 13, 2005 at 11:30 pm
  • 11

    CPAN

    Hi, Does anyone know why CPAN shell cannot use the FTP addresses I defined? I saw that it waits very much time for each one, then tells that that address was not accessible and passes to the next ...
    Octavian RasnitaOctavian Rasnita
    Mar 27, 2005 at 12:04 pm
    Mar 27, 2005 at 4:08 pm
  • Hi, Can anybody let me know how to create our own modules in perl. Thanks in advance... Mahantesh V H
    Mahantesh HongalMahantesh Hongal
    Mar 16, 2005 at 10:23 am
    Mar 16, 2005 at 10:36 pm
  • Dear all, I remember reading how Randal puts the =1= =2= in front of each line of code on his site, but I can't find it again. Anyone remember? Thanks. -- Just getting into the best language ever... ...
    Gavin HenryGavin Henry
    Mar 1, 2005 at 11:24 am
    Mar 2, 2005 at 5:08 pm
  • Has anyone ever accidentally changed the stdout for perl to nowhere. I can't print anything to the screen from the command prompt with - #! /usr/bin/perl-w use strict; print "Hello world. \n"; exit; ...
    Earthlink-m_ryanEarthlink-m_ryan
    Mar 1, 2005 at 3:40 pm
    Mar 7, 2006 at 5:14 pm
  • Is there a quick way to initialize a number of variables at once? Something like my ($var1, $var2, $var3); but instead of having undef in all of them, let's say I want to have 1 in each. Any takers? ...
    Peter RabbitsonPeter Rabbitson
    Mar 11, 2005 at 8:41 pm
    Mar 12, 2005 at 1:03 pm
  • I am quite new to programming and Perl, so please bear with me. I have a requirement to check the format of a field before a record can be saved. The format of the field needs to be double digit ...
    CM AnalystCM Analyst
    Mar 10, 2005 at 6:33 pm
    Mar 11, 2005 at 11:10 am
  • Hi, I want to run a substitution for all instances of "_" with "." after '@' in a string but "_" before "@" should not be touched. eg $str = "abc_def@lmn_p_q"; Should become abc_def@lmn.p.q Any ...
    Ramprasad A PadmanabhanRamprasad A Padmanabhan
    Mar 31, 2005 at 9:45 am
    Mar 31, 2005 at 11:37 pm
  • I have a directory which has output reports in them. The big problem is that they are just a bunch of letters and numbers like 2781424330fdac47c916.xls. So the user would like a more recognizable ...
    Wagner, David --- Senior Programmer Analyst --- WGOWagner, David --- Senior Programmer Analyst --- WGO
    Mar 29, 2005 at 9:31 pm
    Apr 8, 2005 at 8:58 pm
  • Can Any body pls tell me the differnece between .pm and .pl files. Thanks, Krishna
    Srikrishna RaghammudiSrikrishna Raghammudi
    Mar 30, 2005 at 5:10 am
    Apr 2, 2005 at 4:44 pm
  • Hi, I have the following code : eval{ require "file" or die "unable to find file"; }; print "$@"; But it always prints "Can't locate file in @INC. blah blah " I want $@ to contain "unable to find ...
    Ankur GuptaAnkur Gupta
    Mar 30, 2005 at 6:48 pm
    Mar 31, 2005 at 8:33 pm
  • Hi All, I'm trying to send the output file to a network printer. The program is working fine as far as producing the file, but it is not being sent to the printer. Can someone pls take a look at my ...
    Brian VolkBrian Volk
    Mar 23, 2005 at 9:06 pm
    Mar 29, 2005 at 4:22 pm
  • Hi This program I use to get the last line from the log file "cipe.log". and then write the line onto a text file "a.txt" system("tail -1 cipe.log a.txt"); open INPUT,"a.txt"; my $line=<INPUT ; then ...
    Anish Kumar K.Anish Kumar K.
    Mar 15, 2005 at 12:31 pm
    Mar 16, 2005 at 7:51 am
  • I've got an array returned from Google's API and I need to get the data out of it. The best I can do right now is: ARRAY(0x8262e088) Can anyone help me out? - Grant
    GrantGrant
    Mar 13, 2005 at 10:47 pm
    Mar 15, 2005 at 5:13 am
  • I am running ActivePerl 5.8.6 on Windows XP. I am unable to execute a statement like -- perl -e '<perl code ' -- I always get this response: Can't find string terminator "'" anywhere before EOF at -e ...
    RenardRenard
    Mar 11, 2005 at 3:23 pm
    Mar 13, 2005 at 10:12 am
  • Hello! I want to read this file into an array. How can i just get 4, 5, 6,7,8 into an array? And later, how can i get the contents out of this array? 1) 2) 3) 4) 5) 6) 7) 8) 9) 10) 11) ATOM 2909 CG1 ...
    E.HornE.Horn
    Mar 8, 2005 at 10:52 am
    Mar 8, 2005 at 5:53 pm
  • HI: I want to write a perl script that would compute the date in the format yymmdd(050303) and subsitute it for a variable in the perl script. This variable is thereafter subsituted in a command that ...
    Nishi PrafullNishi Prafull
    Mar 3, 2005 at 7:52 pm
    Mar 3, 2005 at 10:27 pm
  • hello I want to split the datetime of apache log i tried this code with no success @fields=split(/[/:]/, $datetime); ### DD/MM/YYYY:HH:MM:SS has anyone tried anything like that?
    JohnJohn
    Mar 31, 2005 at 9:10 am
    Apr 11, 2005 at 10:38 am
  • I am trying to build an inheritable object, and I am using examples from the Perl Cookbook, 2nd edition, mostly Recipe 13.1, using the new and _init methods. I created a base class Logon and a ...
    Brad CarlsonBrad Carlson
    Mar 31, 2005 at 9:25 pm
    Apr 2, 2005 at 5:00 pm
  • Lo all, Very quickly.... #!/usr/bin/perl use CGI; use strict; use warnings; my $Query = new CGI; if (!$Query- request_method() eq "POST") { exit; } Using a GET / HEAD method, the IF statement never ...
    Chris KnipeChris Knipe
    Mar 29, 2005 at 6:45 pm
    Mar 29, 2005 at 7:25 pm
  • Hi, I need to parse this string: 2005-03-11 13:49:41.19 to just get the hour and minute. my program has: if( $string = /([\d]+)-([\d]+)-([\d]+)\s([\d\d):(\d\d):(\w+)/ ) { print("Hour:Minute = ...
    RadhikaRadhika
    Mar 11, 2005 at 7:32 pm
    Mar 28, 2005 at 7:30 pm
  • Hi all, I am writing a daemon in perl , where the parent just forks on some requests and the children take over. But I found many child processes becoming defunct. I am not sure why. I am catching ...
    Ramprasad A PadmanabhanRamprasad A Padmanabhan
    Mar 28, 2005 at 7:56 am
    Mar 28, 2005 at 12:51 pm
  • #!/usr/bin/perl foreach (`df -h|grep /dev/hda11`) { split(); # our $total = $_[1]; # our $used = $_[2]; our $free = $_[3]; if ($free =~ /M/){ $free=~ s/M//; print $free."\n"; if ($free <= 10) { $mesg ...
    Saurabh SinghviSaurabh Singhvi
    Mar 22, 2005 at 5:46 pm
    Mar 27, 2005 at 1:52 pm
  • Hi, Does anybody have a Web Service client in perl (SOAP stuff) to consume a Web Service. I have created Web Services using Remedy (ARS) and now need to write a cleint for the external customer. Any ...
    Atul VohraAtul Vohra
    Mar 22, 2005 at 4:27 pm
    Mar 23, 2005 at 1:43 pm
  • I'm having trouble with this, and I'm sure someone out there has a really clever solution-- I have a hash, %data, with, say, 32 elements. From that, I need an array going from 01 to 32, i.e. 01, 02, ...
    Bryan R HarrisBryan R Harris
    Mar 15, 2005 at 5:04 pm
    Mar 15, 2005 at 11:41 pm
  • Dear all, I have the following: #!/usr/bin/perl use strict; use warnings; use Mail::Sendmail; my $from = '"Test e-mails" <tests@tests.com '; my $subject = 'Testing for survey e-mail'; open LIST, ...
    Gavin HenryGavin Henry
    Mar 10, 2005 at 8:11 pm
    Mar 11, 2005 at 12:46 am
  • Greetings, This is the multi line pattern in which I wish to match: <tr <td <b String 1.2.3.4.5.6 </b </td <td <img src="pics/green.gif" alt="OK" </td <tr This is what I have: ...
    William MelansonWilliam Melanson
    Mar 8, 2005 at 3:44 pm
    Mar 8, 2005 at 8:45 pm
  • I hope someone can explain this and offer a solution for me, I've written a Perl script to parse an HTML file that was produced as a result of exporting database information from FileMaker Pro. The ...
    James marksJames marks
    Mar 6, 2005 at 9:34 pm
    Mar 7, 2005 at 2:01 pm
  • Hi pals, I'd like to code my own encode function, I have @list of allowed characters, my input is number, and I'd like to 'convert' number to characters. Here is script I coded, but I'm sure it could ...
    Ing. Branislav GerzoIng. Branislav Gerzo
    Mar 30, 2005 at 10:24 am
    Mar 31, 2005 at 8:59 pm
  • Lo all, I tried to do this with split(), but it's not working good at all.... The string: interface=something very long with spaces and all mac-address=00:02:6F:36:2D:31 ap=no wds=no rx-rate=11Mbps ...
    Chris KnipeChris Knipe
    Mar 17, 2005 at 2:45 pm
    Mar 18, 2005 at 5:47 am
  • I am writing a script to list out a directory's contents, showing the number of days since modified. The problem I am having is that the script doesn't list out the "modified time" unless I change to ...
    Bret GoodfellowBret Goodfellow
    Mar 11, 2005 at 10:09 pm
    Mar 11, 2005 at 11:57 pm
  • Hello beginners@perl.org, anyone could me help with: use strict; use warnings; my %kw = (); my $kw = \%kw; for my $cat (split(/\//, 'something/other/foo/bar')) { $kw- {cnt}++; $kw- {cat${kw- {cnt}}} ...
    Ing. Branislav GerzoIng. Branislav Gerzo
    Mar 8, 2005 at 4:44 pm
    Mar 8, 2005 at 10:37 pm
  • Hi Goodies, I have a situation where in, iam updating a file by replacing few strings in some lines with another string. While doing this, Can i have an option by which i could open a file for both ...
    Suneel Kumar BSuneel Kumar B
    Mar 7, 2005 at 2:35 pm
    Mar 8, 2005 at 5:50 pm
  • Hi, Is there a way to store the output of a system call on unix? eg. system("date"); I like to store the date output to a variable. The only way I know of is to open and write the output to a file ...
    Geraldine_1Geraldine_1
    Mar 8, 2005 at 4:29 pm
    Mar 8, 2005 at 5:03 pm
  • Hi: I would like to call a perl script(B.pl) within another perl script(A.pl). Should I use the following approach or something else? A.pl ----- my $cmd = "perl B.pl" system($cmd); Please let me ...
    Nishi PrafullNishi Prafull
    Mar 3, 2005 at 11:47 pm
    Mar 4, 2005 at 1:39 pm
  • I'm trying to read in text lines from a file that look like this: "B-B01","Eng","Binder for Complete Set of Population Reports",13,0 "C-CD01","Eng","The Condoms CD-ROM",12,1 "F-J41a","Fre",,13,1 ...
    KEVIN ZEMBOWERKEVIN ZEMBOWER
    Mar 28, 2005 at 4:13 pm
    Mar 28, 2005 at 7:04 pm
  • Hi, I use the following regex to split a (really simple) file into sections headed by <h1 .+?</h1 : while ($content =~ m#<h1 (.+?)</h1 (.+?)(?=<h1 )#gs) { ... } This works perfectly, but obviously ...
    Jan EdenJan Eden
    Mar 23, 2005 at 4:07 pm
    Mar 24, 2005 at 10:51 am
  • Hello All I want to remove all characters with ascii values 127 from a string Can someone show me a efficient way of doing this. Currently what I am doing is reading the string char-by-char and check ...
    Ramprasad A PadmanabhanRamprasad A Padmanabhan
    Mar 21, 2005 at 1:15 pm
    Mar 22, 2005 at 8:14 pm
Group Navigation
period‹ prev | Mar 2005 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions228
posts1,020
users202
websiteperl.org

202 users for March 2005

John W. Krahn: 72 posts Wiggins d'Anconia: 44 posts Offer Kaye: 43 posts Chris Devers: 36 posts John Doe: 35 posts Wagner, David --- Senior Programmer Analyst --- WGO: 31 posts Charles K. Clarkson: 28 posts Dbsmith: 27 posts Peter Rabbitson: 24 posts JupiterHost.Net: 21 posts Steven Schubiger: 20 posts Ing. Branislav Gerzo: 16 posts Ramprasad A Padmanabhan: 16 posts Nishi Prafull: 13 posts Octavian Rasnita: 13 posts Zentara: 12 posts Chris Knipe: 11 posts Dave Gray: 11 posts Gavin Henry: 11 posts Jay Savage: 11 posts
show more
Archives