Search Discussions
-
Greetings! I have the following class in a .pm file: use warnings; use strict; package ScheduleDay; use Train; sub new { my $self = {}; # $self is a reference to an anonymous, empty (for now) hash ...
Rob Richardson
Mar 20, 2003 at 4:03 am
Mar 21, 2003 at 2:12 am -
Hi List, Any reason why this dies? error: " could not open data.txt No such file or directory" -- The file and script reside in the same directory!!! #!/usr/bin/perl -w use strict; my $data = ...
David Gilden
Mar 18, 2003 at 4:21 pm
Mar 23, 2003 at 5:14 pm -
I have this subroutine and it does what I need :: print rmgtlt($var); sub rmgtlt { $_[0] =~ s/^\<|\ $|\n|\r|\s$//g; return $_[0]; } Is there a way to so the substitution and return the result in one ...
Dan Muey
Mar 11, 2003 at 5:04 pm
Mar 11, 2003 at 10:20 pm -
Could some one help me with this code. Every time that I this code: use Net::Whois; use Carp; $dom ="digidyne.com"; my $w = new Net::Whois::Domain $dom or die "Can't connect to Whois server\n; unless ...
Thomas Browner
Mar 17, 2003 at 7:27 pm
Mar 24, 2003 at 8:49 pm -
Hi! Maybe this is really easy, but hey, I'm a beginner with Perl. I'm trying to count the number of times a string is contained inside another string. Here's a sample of my data, a set of ...
Scott E Robinson
Mar 12, 2003 at 7:58 pm
Mar 14, 2003 at 12:08 am -
Hi All ,pls answer if u know anything out of 3 different questions. 1) Can somebody give some pointers where to look for or any particularly good one ( free ofcourse) automated ftp tool which can be ...
Pradeep Goel
Mar 24, 2003 at 5:54 am
Mar 25, 2003 at 4:13 pm -
15
apache error
I'm new to apache and linux. I'm trying to run the "Hello World" cgi that works perfectly from terminal but via WebServer I obtain this error: [Fri Mar 14 17:03:11 2003] [error] [client 127.0.0.1] ...Francesco del Vecchio
Mar 14, 2003 at 4:16 pm
Mar 15, 2003 at 8:26 am -
I need to get the query string of the durrent document. I use CGI's version :: print query_string(); close but I was wondering how to get it without sepcial characters %ized. EXAMPLE :: print ...
Dan Muey
Mar 31, 2003 at 4:07 pm
Apr 1, 2003 at 9:16 pm -
Hi All, As a naive perl programmer, I want to get rid of a problem, for that, I am keen, awaiting your suggestions. I doubt, I could not present my case in front of you properly. Anyway, my problem ...
Soumyadeep nandi
Mar 18, 2003 at 8:59 am
Mar 27, 2003 at 10:07 am -
Hi guys, I need a very simple command line perl program that takes two arguements, the frist being a filename and the second being a word to be searched for in that file. Then I simply want the ...
Matt O'neill
Mar 25, 2003 at 2:41 pm
Mar 26, 2003 at 10:37 am -
Hi All, I'm passing a hash to a subroutine like this: subname("a" = 123, "b" = "fff", "C" = "joyjoyjoy"); On the receiving side I want all keys to be upper case. I can map like this: sub subname{ map ...
Peter_farrar
Mar 13, 2003 at 4:21 pm
Mar 14, 2003 at 7:33 pm -
Hello, I am looking for the $num to treated as a string and get the number of characters, in this case I am look for 3 to be returned. Later I want to use this number to pad a string with zeros.... ...
David Gilden
Mar 12, 2003 at 4:09 pm
Mar 13, 2003 at 11:58 pm -
hi group! i'm currently trying to match all variables in a file, the regex i use looks like this : m/([\$|\@|\%]\w+)/g it matches as far as i can see what i want but it also matches stuff like this : ...
Daniel Mueller
Mar 6, 2003 at 7:33 am
Mar 7, 2003 at 9:40 pm -
I have a DB that records HTTP log data like this. I'm horrible at regular expressions and could use some real help in pulling out the HTTP error code from lines that look like this. 65.248.129.126 - ...
Romeyn, Derek
Mar 12, 2003 at 1:20 pm
Mar 14, 2003 at 11:37 am -
Clear DayI tired to run the script below on my host server and it would not run. The server cannot find Taintcheck or Timefuncs. I uploaded these pm file to the server. What did I do wrong? Is Apache ...
Mr. Horace Franklin Jr.
Mar 7, 2003 at 4:35 pm
Mar 10, 2003 at 9:28 pm -
So my boss just told me that he doesn't like the fact that the "From:" field in our email database typically looks like: "BlahBlahBlahBlah From: BlahsvilleDude (The "blahs", of course, are not ...
Gregg R . Allen
Mar 4, 2003 at 10:23 pm
Mar 8, 2003 at 6:53 pm -
Hello, I was wondering how you can evaluate parts of a string: Ex: $fileName = "File"; $var = '1 $fileName'; Now I would like a *simple* way of evaluating $var such that only '$fileName' gets ...
Navid M.
Mar 18, 2003 at 3:49 pm
Mar 18, 2003 at 9:12 pm -
I can't find much documentation for this function and related constructor methods. I would be grateful for any assistance that can be offered. I admit I am not to familiar with perldoc but searching ...
Tom Norwood
Mar 10, 2003 at 7:27 pm
Mar 13, 2003 at 3:25 pm -
Still struggling with multilevel hashes. Below is my code snippet, obligatory use statments are in effect. I don't understand the error. Line 52 refers to the line %hrLists assignment - Where did I ...
Deb
Mar 9, 2003 at 10:40 pm
Mar 11, 2003 at 6:02 pm -
11
why objects?
I'm sold -- I write most code as object modules now. Yes, it adds some work to make sure it's inheritable, and I have to think whether a method can or must be called as a class method, or can or must ...Paul
Mar 7, 2003 at 12:45 am
Mar 20, 2003 at 3:40 pm -
How can I see what file handles are pointed at a given file. I am having a problem where I open, read, and close a certain file. Then another part of the script tries to open that same file, but ...
Rbraswell
Mar 17, 2003 at 4:04 pm
Mar 19, 2003 at 9:50 pm -
In other languages, such as C, there is little difference between a while() loop and a do-while() loop. The only difference of course being that that do-while() loop will always execute at least once ...
Jeff Westman
Mar 7, 2003 at 12:36 am
Mar 8, 2003 at 2:13 am -
Trying to get this to work on one line, but not having any success. In my boredom I re-wrote the find command using perl4, and in tweaking it I'm running into a problem. When I type in a starting ...
Jensen Kenneth B SrA AFPC/DPDMPQ
Mar 6, 2003 at 5:25 pm
Mar 7, 2003 at 4:58 pm -
Sometimes I really hate using cpan. It's 'help' isn't much. It's been since last october that I touched my cpan stuff, and now it's out of date. It's currently at v1.60. I wanted to upgrade, so I did ...
Deb
Mar 5, 2003 at 4:28 pm
Mar 7, 2003 at 3:42 pm -
Is there a perl command to list installed modules?
Rob
Mar 5, 2003 at 3:09 pm
Mar 7, 2003 at 5:28 am -
Dear Perl communinty, I don't exactly want to ask this now, since I just spent much of the evening trying to handle this case, but I wonder if there's an easy way to keep the following regular ...
Scott E Robinson
Mar 25, 2003 at 1:40 am
Mar 26, 2003 at 10:14 am -
I have checked my books, checked permissions, and am still having trouble. Here is my code in a file named hello.pl. I have a link to this file off my web page to test it. (Maybe this part is now ...
Barb Konings
Mar 25, 2003 at 3:11 am
Mar 25, 2003 at 3:42 pm -
My export.txt file has data in the format Joe Doe mail: joe.doe@homail.com. I want my script to replace mail for email. At the end of the script I get an empty file? Why what am i doing wrong ...
Erwin Zavala
Mar 14, 2003 at 4:03 am
Mar 14, 2003 at 1:32 pm -
Greetings, all! I have a mail server with swatch examining the log files looking for root.exe, /winnt/system32, etc. The idea is finding anyone who is scanning for root kits on my mail server gets ...
Michael Weber
Mar 7, 2003 at 12:36 am
Mar 10, 2003 at 7:48 pm -
Dear members, I have a problem with a perl script pasted below. Since it is not a short script I was reluctant to paste all of it but then I thought it may be easier to understand if I pasted all of ...
Aim
Mar 31, 2003 at 7:11 pm
Apr 2, 2003 at 1:57 pm -
Hi Everyone, I'm having a problem with extracting certain strings within a line. I tried several ways, but not very inefficient. Can somebody help me with it? thanks a lot. The line might be one of ...
Tao wang
Mar 19, 2003 at 12:20 am
Mar 19, 2003 at 11:38 pm -
if ( /^That_Text\s=\s2/ ) { $_ .= $addText; }else { s/^This_Text.*$/That_Text = 2/; } You don't need the $_ since this is the default for regex searches and replaces. Wags ;) ...
Wagner, David --- Senior Programmer Analyst --- WGO
Mar 13, 2003 at 7:41 pm
Mar 14, 2003 at 1:34 pm -
I tried to run perlopentut example for STDOUT processing but got just this: =========Beginning of the citation============== '-' is not recognized as an internal or external command, operable program ...
Vyacheslav Nadvorny
Mar 4, 2003 at 9:09 pm
Mar 5, 2003 at 11:01 pm -
Hello again. I'm trying to write a script for uploading some files, but I want it to be password protected, giving this way restricted acces to some users. I don't want to set a password for the ...
Ramón Chávez
Mar 26, 2003 at 4:04 pm
Apr 17, 2003 at 4:10 pm -
I'm trying cache a function to help speed it up. My function lives inside a module, and is being called from a seperate script. It works if I do the following. foreach my $count (1..10) { print ...
Rob Anderson
Mar 28, 2003 at 2:43 pm
Mar 29, 2003 at 9:14 pm -
Hi, I have a perl script that takes in form data and generates and email with the data to be sent to me. I'm getting the error message Error:Bad or missing From address: '$from_address'. The ...
Robbie Staufer
Mar 28, 2003 at 7:12 pm
Mar 29, 2003 at 4:58 pm -
hello, I need to delete single lines in a text (for example the 132nd, the 133rd and the 134th ones). How can I do it in a structure like: if $. = selected number line = "" ? thanks, all'adr
Adriano Allora
Mar 25, 2003 at 11:39 pm
Mar 27, 2003 at 12:43 pm -
Hi, I am looking to write a script that will look in a file for a list of text strings to search for like req_aaaa req_bbb req_ccc and search all the files in a subdirectory and below for the string, ...
James Ferree
Mar 26, 2003 at 1:46 pm
Mar 26, 2003 at 3:18 pm -
Hello all, I know this probably very simple and I've overlooked the obvious here, but I have a flat file containing categories: Animations Backgrounds Buttons Clip_Art Dividers-Bars Flash Fonts Icons ...
Mike Blezien
Mar 25, 2003 at 5:31 pm
Mar 26, 2003 at 9:54 am -
Hi, I have been researching on this. i got a script when i try to run get an error connecting to server. This script i am just trying to get to work, but the main reason for this is to be able to ...
Mel awaisi
Mar 25, 2003 at 8:30 pm
Mar 25, 2003 at 10:12 pm -
Dear Perl experts, I'm trying to find the right regular expressions to do some simple (?) string processing. Can anyone tell me how to do these? 1. Given a string consisting of substrings delimited ...
Scott E Robinson
Mar 24, 2003 at 2:56 pm
Mar 24, 2003 at 5:49 pm -
Is there an elegant way to make sure that a string contains a list of strings, but not necessarily in any particular order? Here's how I'm doing it: #!/usr/bin/perl -w use strict; my ...
Pete Emerson
Mar 15, 2003 at 4:04 pm
Mar 17, 2003 at 7:36 pm -
Rob/Joseph, It worked, thanks. Horace
Mr. Horace Franklin Jr.
Mar 10, 2003 at 1:09 pm
Mar 11, 2003 at 11:25 pm -
Hi All, Sorry if this is a stupid question. It took me awhile to figure out I could use the File::Copy module to copy a file, and this is about the same level of ignorance. Is there an easy way to ...
Peter_farrar
Mar 10, 2003 at 5:56 pm
Mar 11, 2003 at 9:03 pm -
Please tell me if you do find one? Regards, Mel Worried what your kids see online? Protect them better with MSN 8 http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059
Mel awaisi
Mar 10, 2003 at 3:33 pm
Mar 11, 2003 at 2:38 am -
Hi everyone, I'm a hopeless hacker of Perl, and I tend to think in AWK-ish ways, simply because I know awk loads better than Perl. Awk has unfortunately taught me to think purely in terms of ...
Dennis Warren
Mar 27, 2003 at 10:32 am
Apr 11, 2003 at 6:23 am -
Hello, I have a sentince I would like to split on a word and keep everything right of the "split word". I cant seem to get this to work. Could over me some advice. Thanks, -- jd jd@taproot.bz Bad ...
Jdavis
Mar 31, 2003 at 10:36 pm
Apr 1, 2003 at 10:27 am -
$! contains error text, if I remember correctly off the top of my head. Use $| = 1 instead for autoflush. This shouldn't cause redirect problems, tho. Are you running this on Windows? I've noticed ...
Bakken, Luke
Mar 28, 2003 at 5:39 pm
Mar 31, 2003 at 5:11 am -
how can I see where modules are installed no matter if they are personal or come with perl also how can I tell what functions are available for them. Thanks
Eric Walker
Mar 26, 2003 at 6:05 pm
Mar 28, 2003 at 1:38 am
252 users for March 2003
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)