Search Discussions
-
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.Net
Mar 31, 2005 at 6:41 pm
Apr 15, 2005 at 12:03 am -
This is correctly printing '7' but '$a- [$#{@$a}]' seems to be encripted code. Can I write this in a cleaner way?
Marcos 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 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 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 ...
Dbsmith
Mar 11, 2005 at 9:15 pm
Mar 13, 2005 at 2:54 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 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 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 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 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 ...
FlashMX
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 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 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 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 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_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 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 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 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 --- 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 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 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 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.
Mar 15, 2005 at 12:31 pm
Mar 16, 2005 at 7:51 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 ...
Renard
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.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 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?
John
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 Carlson
Mar 31, 2005 at 9:25 pm
Apr 2, 2005 at 5:00 pm -
7
CGI.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 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 = ...
Radhika
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 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 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 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 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 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 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 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 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 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 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 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 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_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 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 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 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 Padmanabhan
Mar 21, 2005 at 1:15 pm
Mar 22, 2005 at 8:14 pm
202 users for March 2005
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)