FAQ

Search Discussions

397 discussions - 1,685 posts

  • hi, i am a beginners in perl.i am studying perl regex now ,and i want to know how to make a regex for a ip address. thank you!!
    Alex chenAlex chen
    Aug 18, 2002 at 3:14 pm
    Aug 21, 2002 at 8:23 am
  • Hello, I have only been writing perl for a few months, so forgive me if this sounds stupid. what is the difference between: $| = 1; and $|++; Or can you point me in the right direction on where I can ...
    Chad KellermanChad Kellerman
    Aug 19, 2002 at 3:18 pm
    Aug 28, 2002 at 3:49 am
  • If a Perl program generates ZOMBIE/defunct processes, how does that affect the system? Do the following code avoid the ZOMBIE/defunct? # <code do { $pid = waitpid (-1, &WNOHANG); } until $pid == -1; ...
    Ahmed MoustafaAhmed Moustafa
    Aug 10, 2002 at 4:16 am
    Aug 19, 2002 at 11:07 am
  • more regexps.. $_ comes in this form: servername:D:\CC_Storage\Views\EUSDNKG_Madeleine_Tae68_view.vws [uuid 74a6b3b0.d1cd11d4.896e.00:b0:d0:83:b4:9b] i want $_ to be just the uuid number that is: ...
    David Samuelsson (PAC)David Samuelsson (PAC)
    Aug 26, 2002 at 4:47 pm
    Aug 27, 2002 at 3:15 pm
  • i get an array conataining a lot off numbers like this: 567 551 540 540 540 533 531 526 493 476 468 429 421 520 how do i find the lowest or the higest number in this series? //Dave
    David Samuelsson (PAC)David Samuelsson (PAC)
    Aug 30, 2002 at 8:23 am
    Aug 30, 2002 at 4:43 pm
  • volks, I'm accustom to being able to make 'waterfall' declartions of variables in the form: # Basically the Matrix of how we have the stuff laid Out # solve these and the real will follow from it.... ...
    DrieuxDrieux
    Aug 8, 2002 at 3:17 pm
    Aug 8, 2002 at 9:00 pm
  • This question may be too vague for a good answer, but my curiosity makes me ask it anyway. I thought I read somewhere that perl is actually faster than C for certain tasks. The vagueness of the ...
    Paul TremblayPaul Tremblay
    Aug 2, 2002 at 6:08 am
    Aug 4, 2002 at 6:46 pm
  • Hi all! I made a program to get the second line of several text files. The program works but I'd like to have your opinion, since I'm new in Perl, maybe some code could be improved. foreach (<*.txt ) ...
    MarioMario
    Aug 6, 2002 at 1:42 am
    Aug 20, 2002 at 6:42 pm
  • WTF doesn't perl -c check for valid subroutines/function calls? I can write a perlscript calling a function that doesn't exist but perl -c will say syntax ok. ie: % perl -ce "nothing_here('some ...
    Nikola JanceskiNikola Janceski
    Aug 14, 2002 at 6:55 pm
    Aug 16, 2002 at 3:09 pm
  • Hi All, I have been using perl on linux for quiet some time now and I have found that Perl does not work the same in windows eg. To get all the unique elements of an array in linux I use a simple one ...
    Ramprasad A PadmanabhanRamprasad A Padmanabhan
    Aug 30, 2002 at 5:36 am
    Aug 30, 2002 at 9:15 pm
  • Hi, Thanks in advance, if someone can help me out I am trying to read the last 10 lines of a log file. If the script finds a word ERROR it should email and log the event. If not then do nothing. Some ...
    Najamuddin, JunaidNajamuddin, Junaid
    Aug 9, 2002 at 10:01 pm
    Aug 30, 2002 at 5:36 am
  • is there a way to test for an integer value other than /^\d+$/ or $_ == int; Nikola Janceski In time we hate that which we often fear. -- William Shakespeare ...
    Nikola JanceskiNikola Janceski
    Aug 22, 2002 at 8:49 pm
    Aug 25, 2002 at 1:35 am
  • The "if" in the line below returns a syntax error; I have put brackets around $county and such but still am not figuring it out. Any help would be appreciated. # Validate County was received if ( ! ...
    Gregg O'DonnellGregg O'Donnell
    Aug 23, 2002 at 7:57 pm
    Aug 24, 2002 at 12:29 am
  • Hello, I have a file called /appl/webdocs/Vendor/TEC_3.7.1 which does not get matched with this regex: $directory = $1 if $directory =~ m!(/[\w/.]+/)\w+/$!; Other directories work fine, but this ...
    John PitchkoJohn Pitchko
    Aug 22, 2002 at 4:56 pm
    Aug 22, 2002 at 8:51 pm
  • Hello, can I / how can I use a variable as a hash name? $$myVar{key}? Thanxs!
    AngersteinAngerstein
    Aug 26, 2002 at 11:36 am
    Aug 26, 2002 at 5:33 pm
  • Hello! I need to use something like: system("$SQLPath -U $Login -P $Pwd -S $DBServer -d $DBName -i MSTmp.sql") == 0 || die $msg; where $SQLPath is a full path to the sql bin directory, input by the ...
    Yan LinYan Lin
    Aug 22, 2002 at 5:05 pm
    Aug 22, 2002 at 6:32 pm
  • Hello All, I created a simple http upload file routine that uploads file into my accounts sub folder uploads, "/home/myaccount/uploads". This is already running. Now what I wanted to do is retrieve ...
    PerlPerl
    Aug 14, 2002 at 11:44 am
    Aug 21, 2002 at 6:31 pm
  • Below is the question I posted a few minutes ago (from wrong sender so you never saw it). Since then I found a solution which I thought I'd mention - it's amazingly simple but seems to work. One ...
    Kevin PfeifferKevin Pfeiffer
    Aug 7, 2002 at 8:50 pm
    Aug 8, 2002 at 9:43 pm
  • hi... i'm trying to use AppConfig, but i'm getting the following error: dir: no such variable at /home/sheila/loserspool/loserspool.conf line 1 when running this code: <code $config = AppConfig- new ...
    Jeremy VindingJeremy Vinding
    Aug 21, 2002 at 7:53 pm
    Aug 26, 2002 at 6:41 pm
  • I rec'd this error msg (also "Missing oper before ?" ) for the following code: my $sth = $dbh- do("INSERT INTO logger VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", undef, $datetime, ...
    Gregg O'DonnellGregg O'Donnell
    Aug 22, 2002 at 4:27 pm
    Aug 26, 2002 at 2:51 pm
  • Hello. I was wondering if there is a way to capture a system command into a perl variable. I know this is incorrect, but I basically want to do something like this: $date = system("date"); print ...
    Jose MalacaraJose Malacara
    Aug 14, 2002 at 6:12 am
    Aug 19, 2002 at 11:44 pm
  • Hi, I am trying to learn to do reg's and I am not sure how to break this down: $_ = "Die,Row 0, Column 12" What I want is the 0 and 12. What about the text? Thanks, Jerry
    Jerry PrestonJerry Preston
    Aug 16, 2002 at 8:19 pm
    Aug 19, 2002 at 7:47 pm
  • I am very well versed in perl, but I have no clue on the perl one-liners via command line. Is there a good web tutorial to give me some ideas and explains each command line option in detail? (my ...
    Nikola JanceskiNikola Janceski
    Aug 5, 2002 at 7:17 pm
    Aug 5, 2002 at 8:27 pm
  • I've been pounding perldoc for a while this morning trying to find a clear technique described to add directories to @INC (permanently). I'm sure its described somewhere but I'm not finding it. I ...
    Harry PutnamHarry Putnam
    Aug 1, 2002 at 4:21 pm
    Aug 2, 2002 at 1:44 pm
  • Hello, this code does what I want, but I am wondering if there are any glaring deficiencies in it. Any suggestions? use warnings; use strict; use File::Copy; ###get the date my ( $day, $month, $year ...
    Auernheimer, Rebecca (CORP, Consultant)Auernheimer, Rebecca (CORP, Consultant)
    Aug 6, 2002 at 8:57 pm
    Aug 7, 2002 at 11:44 am
  • Hi all, I am trying to write a script which checks a dir for a file and then compares the number of days old the file is. Comparing this the mail should go to a user to whom the file (in the dir) ...
    Ashutosh JogAshutosh Jog
    Aug 20, 2002 at 4:30 pm
    Aug 20, 2002 at 9:15 pm
  • Hi guys, just wondering how to sort the columns in order using SQL. Does anybody have any clue? for instance, my column headings are [1] [3] [2] [4] [2], is there a way to SELECT the table with the ...
    Learn perlLearn perl
    Aug 20, 2002 at 5:38 pm
    Aug 20, 2002 at 8:13 pm
  • Just for your information, I and my relatives are safe and dry and we all are high enough to stay that way. I will stay offline today and maybe tomorrow, Our office is on second floor, but the power ...
    JendaJenda
    Aug 13, 2002 at 12:22 pm
    Aug 14, 2002 at 11:08 pm
  • What does this mean? Use of implicit split to @_ is deprecated at UNIX_prelim.pl line 344. line 344: $policyCount = split (/\t/, $violations{$vID}); -Sarah
    Kirby_SarahKirby_Sarah
    Aug 12, 2002 at 9:29 pm
    Aug 13, 2002 at 9:04 am
  • Could anybody help me out here? Here's the message I just got from a guy I know: ----------- I was wondering if you know how to create and access an array of arrays in Perl. Basically I'm parsing an ...
    Troy MayTroy May
    Aug 7, 2002 at 4:46 am
    Aug 8, 2002 at 4:03 am
  • hi, what I'm wanting to do is generate an array named after a string that is found in a text file. i.e something like this: if ($line=~(/^\[\[(\w+)\]\]/)){ @$1=(); #this is the line I want to acheive ...
    AfarrellAfarrell
    Aug 27, 2002 at 2:11 pm
    Aug 28, 2002 at 12:45 pm
  • I am working on a Win32 system, what now I am to do is checking and blocking spams on my mail server. Recently, I use a software mail server to receving mails, but, there is not filter features. What ...
    Connie ChanConnie Chan
    Aug 21, 2002 at 9:51 am
    Aug 26, 2002 at 5:07 am
  • So, I have an interesting question and a bit of code. I didn't really know whether this was the right forum or not, but here goes. I have two goals I would like help with: 1. Optimize/simplify the ...
    ShawnShawn
    Aug 20, 2002 at 4:41 pm
    Aug 21, 2002 at 9:58 pm
  • Hi all Iam new to perl so please bear with me i have a log file that i open to extract some information from file is like this var/backup/usersA2F.0.1_1027468994_24 ...
    LADDOLADDO
    Aug 13, 2002 at 4:32 am
    Aug 21, 2002 at 9:14 am
  • Hi everyone, Can someone tell me whats wrong with this script? It gives error when I run it... Not enough arguments for grep at myprog line 29, near "1 ) " syntax error at myprog line 29, near ") ...
    PrissPriss
    Aug 8, 2002 at 12:12 pm
    Aug 19, 2002 at 3:21 pm
  • Hello List: What is the command structure to grab an uptime request from a remote computer? I have several systems in my organization that I would like to grab the uptime for, then post them to a ...
    Mark WeismanMark Weisman
    Aug 11, 2002 at 9:22 pm
    Aug 14, 2002 at 11:56 am
  • I asked earlier about a way to hide my password in the script, when calling an SQL connection with a line like: my($db) = new Win32::ODBC("fileDSN=myodbc.dsn; uid=myID; pwd=mysecret"); No answers, so ...
    Brian gilbertBrian gilbert
    Aug 29, 2002 at 6:47 pm
    Aug 30, 2002 at 8:17 pm
  • Hello, I am writing a script on a linux server use Net::SSH::Perl. Every once in a while the ssh connection to a remote server dies or it just can't connect. the perl module send a $SIG{KILL} to the ...
    Chad KellermanChad Kellerman
    Aug 27, 2002 at 12:33 pm
    Aug 28, 2002 at 10:15 am
  • Is there an easy to get the year, month and day of the month for yesterday? Rather than getting the current date, checking if it's first of the month, checking for leap years......... TIA Nigel ITM ...
    Nigel PeckNigel Peck
    Aug 23, 2002 at 1:55 pm
    Aug 23, 2002 at 7:54 pm
  • If I have the following expression While (< ) { Print if (/\W/); } every line with a non-word character is printed, how can I extend this to say any "match any non-word character except @ . - _"? ...
    Max ClarkMax Clark
    Aug 23, 2002 at 12:15 am
    Aug 23, 2002 at 2:31 am
  • Hi all, Thanks for your help so far - I have managed to sort out my time and date problem but there are a few points that I dont understand. The code I have used is as follows: # get the hours, mins, ...
    A TaylorA Taylor
    Aug 20, 2002 at 12:08 am
    Aug 20, 2002 at 3:46 am
  • Hello, I just read this in a forum and I have never heard of this before. He was having problems with a variable not holding it's value when calling it from a sub. He wrote back and said that this is ...
    Troy MayTroy May
    Aug 16, 2002 at 2:52 am
    Aug 19, 2002 at 8:07 pm
  • Hello, I am trying to download ActivePerl5.6.1 for solaris from active states perl's site. However there are two options..pkgadd and AS package. What does pkgadd mean ? Which one do I need to install ...
    Shishir K. SinghShishir K. Singh
    Aug 15, 2002 at 2:11 pm
    Aug 15, 2002 at 5:08 pm
  • Hi ya, I'm teaching myself Perl and I have a log file around 1GB that I need to sort by month | date | time | byte size. So far I have parse the log for "bytes" since this is all that I need but I ...
    Samuel BrownSamuel Brown
    Aug 9, 2002 at 10:07 pm
    Aug 12, 2002 at 1:13 pm
  • Hello everyone. I would like to be able to write a script to take the directories off of a root drive and tell me how much space each one is using. For instance. D: What I would like to do is go ...
    Meidling, Keith, CTR, OSD-C3IMeidling, Keith, CTR, OSD-C3I
    Aug 8, 2002 at 11:41 am
    Aug 8, 2002 at 1:11 pm
  • Hi, all -- I have a data file which looks something like name kid(s) addr city state zip phone email name addr with lots of extra spaces city state zip phone email name spouse kids city state phone ...
    David T-GDavid T-G
    Aug 6, 2002 at 10:59 am
    Aug 6, 2002 at 7:21 pm
  • When I try to use the value from $0, I get the full path to the script or a leading ./ depending on how the script is invoked. If I want my log file to have a line similar to: # GENERATED BY ...
    Chip PlaceChip Place
    Aug 2, 2002 at 11:32 pm
    Aug 4, 2002 at 1:02 pm
  • I have these coming up when creating a report: ma, BC: 1 bost, : 1 Montroyal, QC: 1 waltam, MA: 1 Quebec, QC: 1 booger, MA: 1 Franklinxxx, MA: 1 BOSTI, MA: 1 How do I rid the report of these ...
    Larry SteinbergLarry Steinberg
    Aug 2, 2002 at 3:58 pm
    Aug 2, 2002 at 9:20 pm
  • Can I do the following with a single replace? my %hash = ("1","abc", "2","xyz"); my $line = '12'; while( my($key, $val) = each(%hash) ) { $line =~ s/$key/$val/g; } print $line . "\n";
    ChrisChris
    Aug 1, 2002 at 4:57 pm
    Aug 1, 2002 at 8:29 pm
  • hi guys, I am trying to extractract a string and use it as a hashkey. Here is an example of what I mean; input: ad0: hard drive fd0: floppy drive xl:network card How I would liek the hash to be ...
    Mark GolandMark Goland
    Aug 31, 2002 at 8:27 am
    Sep 25, 2002 at 6:05 pm
Group Navigation
period‹ prev | Aug 2002 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions397
posts1,685
users307
websiteperl.org

307 users for August 2002

Drieux: 122 posts Felix Geerinckx: 103 posts John W. Krahn: 81 posts Root: 75 posts Nikola Janceski: 55 posts Sudarshan Raghavan: 55 posts Exile: 54 posts Bob Showalter: 50 posts Janek Schleicher: 37 posts Timothy Johnson: 35 posts Robin Norwood: 29 posts Angerstein: 25 posts Kipp, James: 21 posts Paul Johnson: 21 posts Zentara: 21 posts Dharmendra Rai: 20 posts Jenda Krynicky: 18 posts David T-G: 17 posts Jeff 'japhy' Pinyan: 17 posts George Schlossnagle: 16 posts
show more
Archives