Search Discussions

361 discussions - 1,731 posts

  • 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 RichardsonRob 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 GildenDavid 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 MueyDan Muey
    Mar 11, 2003 at 5:04 pm
    Mar 11, 2003 at 10:20 pm
  • 16


    Hi Just a quick question, what is the meaning of this $| and what is it supposed to do? Thanks in advance. Dan
    Mar 29, 2003 at 10:23 am
    Apr 1, 2003 at 4:47 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 BrownerThomas 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 RobinsonScott 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 GoelPradeep Goel
    Mar 24, 2003 at 5:54 am
    Mar 25, 2003 at 4:13 pm
  • 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] ...
    Francesco del VecchioFrancesco 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 MueyDan 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 nandiSoumyadeep 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'neillMatt 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 ...
    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 GildenDavid 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 MuellerDaniel 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. - ...
    Romeyn, DerekRomeyn, 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.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 . AllenGregg 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.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 NorwoodTom 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 ...
    Mar 9, 2003 at 10:40 pm
    Mar 11, 2003 at 6:02 pm
  • 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 ...
    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 ...
    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 WestmanJeff 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/DPDMPQJensen 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 ...
    Mar 5, 2003 at 4:28 pm
    Mar 7, 2003 at 3:42 pm
  • Is there a perl command to list installed modules?
    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 RobinsonScott 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 KoningsBarb 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 ZavalaErwin 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 WeberMichael 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 ...
    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 wangTao 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 --- WGOWagner, 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 NadvornyVyacheslav 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ávezRamó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 AndersonRob 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 StauferRobbie 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 AlloraAdriano 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 FerreeJames 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 BlezienMike 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 awaisiMel 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 RobinsonScott 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 EmersonPete 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.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 ...
    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 awaisiMel 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 WarrenDennis 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 ...
    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, LukeBakken, 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 WalkerEric Walker
    Mar 26, 2003 at 6:05 pm
    Mar 28, 2003 at 1:38 am
Group Navigation
period‹ prev | Mar 2003 | next ›
Group Overview
groupbeginners @

252 users for March 2003

Rob Dixon: 174 posts R. Joseph Newton: 131 posts Dan Muey: 114 posts John W. Krahn: 70 posts Wiggins d'Anconia: 55 posts Scott R. Godin: 54 posts Jeff Westman: 32 posts David Olbersen: 28 posts Wagner, David --- Senior Programmer Analyst --- WGO: 28 posts David Zhuo: 27 posts Bakken, Luke: 26 posts Jenda Krynicky: 25 posts Francesco del Vecchio: 23 posts Mr. Horace Franklin Jr.: 22 posts Sudarshan Raghavan: 22 posts Kipp, James: 21 posts Beau E. Cox: 20 posts Janek Schleicher: 20 posts Aimal Pashtoonmal: 19 posts Bob Showalter: 19 posts
show more