Search Discussions

304 discussions - 1,485 posts

  • I am not sure how to get this the last part of this to work properly. I am trying to check for any file with this format [20040301-www.tar.gz] and remove any past 30 days. Pointers appreciated as ...
    Mar 1, 2004 at 9:07 pm
    Mar 6, 2004 at 8:22 pm
  • I'm writing a home boy mail/news search tool and wondered if there is a cononical way to handle folded or indented header lines. An example would be that I wanted to run a series of regex against ...
    Harry PutnamHarry Putnam
    Mar 26, 2004 at 7:28 am
    Mar 28, 2004 at 5:41 am
  • Hi, I've /share_folder with many user folders. e.g., /share_folder/user_a /share_folder/user_b ... I would like to scan all user folders for files that are older than 30 days and delete them. Is this ...
    Norman ZhangNorman Zhang
    Mar 15, 2004 at 7:01 pm
    Mar 17, 2004 at 4:29 pm
  • I'm reading in lines of text, and extracting the relevant parts of it. These relevant parts are then being pushed onto an array. My trouble is that these parts are a maximum of 24 unique names. ...
    Stuart WhiteStuart White
    Mar 8, 2004 at 6:42 pm
    Mar 11, 2004 at 1:17 am
  • I'm having trouble returning a hash from a subroutine, and an array from a different subroutine. "Beginning Perl" said I could return a list, I can't get it to work. Must the hash and array really be ...
    Stuart WhiteStuart White
    Mar 18, 2004 at 1:17 am
    Mar 23, 2004 at 5:00 am
  • What is happening here - #! /usr/bin/perl use strict; use warnings; my $count; while(1) { (++$count) ? $count += $count-- : $count += $count++; print "$count\n"; exit if $count 60_000; sleep 1; } ...
    WC -Sx- JonesWC -Sx- Jones
    Mar 30, 2004 at 5:49 am
    Apr 20, 2004 at 5:08 pm
  • Hey all, I've determined that if I pipe info into a perl script, it's read from the STDIN file handle. Easy enough. No problem there. I've also determined that if I pipe nothing to this script, it ...
    Keith P. BoruffKeith P. Boruff
    Mar 29, 2004 at 1:01 am
    Apr 3, 2004 at 11:09 pm
  • Hi, In my program , $sth- execute fails since oracle tables already present. It is very natural. But the waring message output line 37 is different(just behaves as print) from same kind of message at ...
    Jayakumar RajagopalJayakumar Rajagopal
    Mar 26, 2004 at 3:16 am
    Mar 29, 2004 at 6:13 pm
  • HOW-TO of the Month Club (end Of MARCH Edition) (Even though many of you *flamed* me - _I'mmmm baaaack_ :) This edition I will show you how to declare variables WITHOUT using *my* $var everywhere... ...
    WC -Sx- JonesWC -Sx- Jones
    Mar 27, 2004 at 3:19 pm
    Mar 28, 2004 at 6:39 pm
  • I'm confused about greediness. This is the line that I'm trying to match: Spurs 94, Suns 82 This is my regex: if ($_ ...
    Stuart WhiteStuart White
    Mar 12, 2004 at 2:02 am
    Mar 14, 2004 at 2:59 pm
  • Hai all. I want to make a script which converts like (pErl1234test = perl).I wrote like #!/usr/bin/perl print "Enter ur name" $name = <STDIN $org_name = $name $name =~ s/\W.*//; #change 1 $name =~ ...
    Mar 29, 2004 at 9:51 am
    Mar 30, 2004 at 2:42 pm
  • No. The parent cannot see any variables in the child. You need to use some form of IPC to communicate between the processes. I would suggest using a pipe. Here's an example of a parent that forks off ...
    Bob ShowalterBob Showalter
    Mar 3, 2004 at 7:17 pm
    Mar 10, 2004 at 12:29 am
  • Dear Friends, I need to pass 3 parameters to a subroutine, in which the first parameter is an array and the last two parameters are strings. @abc = qw(1 2 3); $x = 4; $y = 5; testsub(@abc, $x, $y); ...
    Mar 2, 2004 at 2:02 pm
    Mar 8, 2004 at 11:03 pm
  • Hi , I have an array that is build like this foreach $i ( 0 .. @array1-1) { foreach $j ( 0 .. @array2-1) { $array3[$i][$j] = $array2[$j]; } } The array3 has "m" rows and "n" columns of data. This ...
    N, Guruguhan \(GEAE, Foreign National, EACOE\)N, Guruguhan \(GEAE, Foreign National, EACOE\)
    Mar 26, 2004 at 12:21 pm
    Mar 27, 2004 at 9:27 pm
  • I have a text file with 5 or more lines as in: My name is this and that I live in Denver Colorado I live in washington I live in Denver Virginia I am trying to read this file and print each line and ...
    Mar 12, 2004 at 3:02 am
    Mar 12, 2004 at 8:56 pm
  • I am trying to understand how this works. For example: my $n = @$a @$b ? @$a : @$b; I understand this is a conditional statement I am just not sure what is being compared with ? and :. --Paul
    Mar 1, 2004 at 3:51 am
    Mar 2, 2004 at 10:17 pm
  • Hey Everyone, Do we know where I can get a clear definition of "query_string"? What are included by the "query_string" returned by the apache web server? Thanks! Mike
    Mike NiMike Ni
    Mar 24, 2004 at 5:11 am
    Mar 24, 2004 at 7:00 pm
  • I have a script that handles some text strings. The textstrings in them self I can't control so they can contain characters as ?: < etc which makes them hard to check through a regexp. So I want to ...
    Mar 23, 2004 at 2:55 pm
    Mar 23, 2004 at 7:58 pm
  • I'm sorry, the previous subject should have been changed. My apologies. while (<FILE ) { $counter++; } I know this is probably simple, but how would I increment by 20? In other words, $counter would ...
    Mar 29, 2004 at 5:59 pm
    Mar 30, 2004 at 11:43 am
  • This is Part One of a Multipart posting - just to see if we can't keep things in the list archieves (Give the listbots something to do :) (These are not really posted questions so much as they are ...
    WC -Sx- JonesWC -Sx- Jones
    Mar 6, 2004 at 6:00 am
    Mar 10, 2004 at 12:38 am
  • This is a precursor to a real JAPH signeture (I need to learn more perl before I can write a really obfuscated one), and I have already gotten it to print what it was supposed to, but I changed print ...
    Mar 2, 2004 at 4:29 pm
    Mar 4, 2004 at 12:46 am
  • Hello List! I was trying to figure out how to see the user the script/webserver is running as. (Like Apache is 'nobody' or the owner 'foomonkey' perhaps with SuExec enabled) I looked in %ENV and ...
    Mar 29, 2004 at 12:51 am
    Mar 29, 2004 at 6:24 pm
  • any modules out there that can sort things such as.. BB10, BB1100,BB11. I want it to be in this order. BB10,BB11,BB1100. Thanks
    Mar 25, 2004 at 10:51 pm
    Mar 26, 2004 at 7:42 pm
  • Hey List. I have run into a situation that I am unclear on. I am making the following assignment during a loop: push @{$response_hash{$request_id}},{time = "$time",ip_addr = "$ip_address",oids = ...
    Mar 25, 2004 at 3:21 pm
    Mar 26, 2004 at 6:48 am
  • Hey friends, I am reading the man page for CGI module (CGI.p) since I need to REwrite several perl scripts file. right now, I am taking a good look at the CGI module. However, I am wondering where ...
    Mike NiMike Ni
    Mar 19, 2004 at 11:04 pm
    Mar 22, 2004 at 6:02 pm
  • I'm writing a web-based client information system for a lawyer. His current client list is in a 137 page Word document with an embedded table. I can get it into a somewhat usable format by copying ...
    Andrew GaffneyAndrew Gaffney
    Mar 20, 2004 at 11:31 pm
    Mar 22, 2004 at 6:27 am
  • I'm trying to optimize a script used for processing large text log files (around 45MB). I think I've got all the processing fairly well optimized, but I'm wondering if there's anything I can do to ...
    Price, JasonPrice, Jason
    Mar 11, 2004 at 4:43 pm
    Mar 14, 2004 at 3:05 pm
  • Hi, Apologies if I'm bringing up a repeated topic. I searched the list archive and the web and nothing specific has turned up so far. Is there a way to defer evaluation of the contents of a ...
    Michael C. DavisMichael C. Davis
    Mar 12, 2004 at 8:43 pm
    Mar 13, 2004 at 7:13 pm
  • What is the handy way to record the pid of $some_process in this fake code? $some_process = 'tcpdump -v -ieth0 file') system("$some_process") or die "Can't start $some_process: $!"; print "Pid is ...
    Harry PutnamHarry Putnam
    Mar 2, 2004 at 8:34 pm
    Mar 4, 2004 at 2:23 pm
  • Hello, I came to perl by J.Friedl's regex-book without any perl-experiences. I wrote a little script to scan packages and their dependencies from a book (lfs). The script works fine and I get the ...
    Reinhard ManteyReinhard Mantey
    Mar 1, 2004 at 5:04 pm
    Mar 3, 2004 at 3:26 pm
  • hi; i am trying to take input from multiple files.... Various I/P files are specified at command line... Can anyone tell me how to pass the file name to a routine that opens it for parsing .... the ...
    Urvashi mishraUrvashi mishra
    Mar 23, 2004 at 5:29 am
    Mar 31, 2004 at 1:35 am
  • Is there a way to interpolate strings that the user enters? I'm writing a filter (pipe-cat = pat) that lets you add text to the front or end of some piped data: echo "2" | pat "1" - "3\n" The "-" ...
    Bryan HarrisBryan Harris
    Mar 28, 2004 at 6:45 pm
    Mar 30, 2004 at 3:23 pm
  • Howdy, I'm looking to have a one liner version of this: my $xid = ''; $xid = param('xid') if param('xid') =~ m/^\d+$/; Basically, if the param is numeric then assign it to $xid, other wise '' (IE ...
    Mar 20, 2004 at 9:10 pm
    Mar 20, 2004 at 10:23 pm
  • chown seems to be able only to follow links and change the destination. Anyway to change the link itself, I wouldn't want to run system("chown -h $file") . . . I'm using various unix machine (Linux, ...
    Ohad OhadOhad Ohad
    Mar 13, 2004 at 4:21 am
    Mar 17, 2004 at 9:34 pm
  • Hello, I'm looking at the perl cookbook example on how to create a record data type: $record = { NAME = "Jason", EMPNO = 132, TITLE = "deputy peon", AGE = 23, SALARY = 37_000, PALS = [ "Norbert", ...
    Charlotte HeeCharlotte Hee
    Mar 11, 2004 at 11:42 pm
    Mar 17, 2004 at 5:14 pm
  • i got his code from a program i found, and i was wondering that the ? and the : are for? $target = (@digits % 2) ? ($digits[int(@digits/2)]) : ($digits[@digits/2-1]); -- Using M2, Opera's ...
    Sam lehmanSam lehman
    Mar 11, 2004 at 5:08 am
    Mar 13, 2004 at 3:31 am
  • I wrote a perl script that adds colors to text streams on the fly. It's really handy for watching log files as they run past. I watch my mail log files after making config changes and can mark ...
    Michael WeberMichael Weber
    Mar 4, 2004 at 3:16 pm
    Mar 5, 2004 at 11:28 pm
  • I am working on a script that searches through a log file, looking for IP matches based on several ranges of IPs. I'm trying to find a way to do something like this: @results = grep ...
    Price, Jason (TLR Corp)Price, Jason (TLR Corp)
    Mar 31, 2004 at 8:50 pm
    Mar 31, 2004 at 10:17 pm
  • Is there a way to find out how many records were returned with a DBI query? There's the obvious counting each record as you fetch it, but I need the count before I start going through them. -- Andrew ...
    Andrew GaffneyAndrew Gaffney
    Mar 30, 2004 at 5:07 pm
    Mar 31, 2004 at 1:10 am
  • any ideas on how I can access say all the values of a hash and not care what the keys are? Thanks
    Mar 29, 2004 at 10:04 pm
    Mar 30, 2004 at 12:15 am
  • I am trying to get rid of a blank line at the start of a text file, and I dont understand why this does not work open(UPD1,"tem");# this file exists my @update1=<UPD1 ; foreach $update1(@update1){ ...
    Mar 23, 2004 at 9:20 pm
    Mar 25, 2004 at 1:29 pm
  • Hello - I have a series of scripts and modules that I will self install, creating directories within the cgi-bin directory. The structure looks like this: DsgnGrp contains the scripts that call ...
    Ron GoralRon Goral
    Mar 22, 2004 at 3:20 pm
    Mar 24, 2004 at 7:00 pm
  • All, Is there a method or module that allows you to create a trap? For instance, in ksh or any shell I can create a system trap that will disallow any keystroke, other than the expected user input ...
    Mar 16, 2004 at 3:29 pm
    Mar 17, 2004 at 8:38 pm
  • Hello, I have a text file (texst1.txt) that reads: The quick brown fox jumped over the lazy dog. I would like to replace the word fox with coyote. Is there an easier/simpler/cooler way to do this? ...
    Mr MojoMr Mojo
    Mar 10, 2004 at 6:57 pm
    Mar 11, 2004 at 9:53 pm
  • Hi, is there a good way to tell how much memory a given data structure is consuming? I realize that there are issues in using this number to determine runtime memory requirements (like the fact that, ...
    Michael C. DavisMichael C. Davis
    Mar 8, 2004 at 7:36 pm
    Mar 9, 2004 at 6:41 am
  • Paul KrausPaul Kraus
    Mar 4, 2004 at 8:38 pm
    Mar 6, 2004 at 4:41 am
  • I hate to ask for code but I am kind of in a crunch to finish a project. I have the network programming with perl but it's just too much to read by tomorrow night :) I need a daemon listening on a ...
    Paul KrausPaul Kraus
    Mar 5, 2004 at 8:22 pm
    Mar 5, 2004 at 11:27 pm
  • I hope, and think, that I've helped several people to be more eloquent in Perl. The language fascinates me in the way that nearly all who can speak can use it: thanks to Larry, who knew before we did ...
    Rob DixonRob Dixon
    Mar 3, 2004 at 6:17 pm
    Mar 4, 2004 at 2:53 pm
  • I have a script which creates a hash where all the values are hash references. I'm trying to iterate through the original hash and down into the anonymous hashes to make sure my code is doing what I ...
    Andrew GaffneyAndrew Gaffney
    Mar 3, 2004 at 1:49 pm
    Mar 3, 2004 at 10:50 pm
  • I want to print a 3D array (all values dynamically)
    Mar 1, 2004 at 3:35 pm
    Mar 3, 2004 at 2:39 am
Group Navigation
period‹ prev | Mar 2004 | next ›
Group Overview
groupbeginners @

248 users for March 2004

WC -Sx- Jones: 127 posts R. Joseph Newton: 106 posts John W. Krahn: 81 posts James Edward Gray II: 74 posts Wiggins d'Anconia: 55 posts Randy W. Sims: 44 posts Stuart White: 40 posts Andrew Gaffney: 37 posts Charles K. Clarkson: 37 posts Bob Showalter: 28 posts David le Blanc: 26 posts Paul Johnson: 26 posts Mike Ni: 25 posts Harry Putnam: 24 posts Zsdc: 22 posts Jenda Krynicky: 21 posts Jayakumar Rajagopal: 17 posts Michael C. Davis: 15 posts Wagner, David --- Senior Programmer Analyst --- WGO: 15 posts David: 14 posts
show more