FAQ

Search Discussions

418 discussions - 1,559 posts

  • 18

    HTH

    Hi, Okay guys, what does this mean? Several of you 'sign' with this. HTH (lol) JW
    Jeff WestmanJeff Westman
    Jul 24, 2003 at 3:32 pm
    Aug 9, 2003 at 1:47 pm
  • Hi every body, I've got here a script which extracts event logs from Hexadecimal files by parsing them for a certain pattern set. The script runs fine on Solaris 8 (running on a SUN box) but fails on ...
    Rafaqat Ali ChaudharyRafaqat Ali Chaudhary
    Jul 12, 2003 at 9:06 pm
    Jul 29, 2003 at 6:22 pm
  • Hello: I have heard that PERL is more valuable than learning C++ in terms of IT, etc. What is your view of the matter. Regards, GREGORIO GONZALEZ: Internet Business Developer VERIO: An NTT ...
    GregorioGonzalezGregorioGonzalez
    Jul 31, 2003 at 6:08 pm
    Aug 3, 2003 at 10:53 pm
  • Howdy list I currently have to do this via the command line: my @unique = qx(sort -u file.txt); To remove duplicat elines from file.txt. What would be the best way to do the same thign with perl ...
    Dan MueyDan Muey
    Jul 23, 2003 at 7:45 pm
    Jul 23, 2003 at 11:06 pm
  • Hi all, I could use some help with the following problem: I have rows of data (coming in from DBI) looking like this: Key1, Key2, Date_from, Date_to, Value 1, 1, 01-10-2002, 31-10-2002, value1 1, 1, ...
    Jeroen LodewijksJeroen Lodewijks
    Jul 9, 2003 at 10:04 am
    Jul 11, 2003 at 11:47 am
  • It's been my experience that readers of this group relish a demonstration of their persnicketiness. For this I give the following; it works, but doesn't appeal to me: my @tmp_list; my @list; my ...
    Jamie RiskJamie Risk
    Jul 10, 2003 at 4:21 pm
    Jul 10, 2003 at 8:50 pm
  • Hi All, Just trying to work out the code to test if a path is a directory or file. Looked over the stat function but doesn't quite seem right. Can someone give me a clue thanks Rus -- www: ...
    Rus FosterRus Foster
    Jul 24, 2003 at 12:39 pm
    Jul 24, 2003 at 4:16 pm
  • say I have array: @a=["I","LOVE","PERL"] I would like to make a scalar: $b="I Love Perl\n" can I do this with a simple one-liner?
    Ling F. ZhangLing F. Zhang
    Jul 1, 2003 at 7:56 am
    Jul 2, 2003 at 8:43 pm
  • I am trying to hand pack an net addr. On the server end (linux - i386) it works fine.: $addr = pack($template,AF_INET,$port,$iaddr); bind(MY_SOCKET, $addr) || die "$0: Cannot bind .. $!\n"; -- on the ...
    Kipp, JamesKipp, James
    Jul 1, 2003 at 1:24 pm
    Jul 2, 2003 at 2:48 pm
  • I just stumbled upon this in some perl I'm working on: for $arrayref (@datedbi) { #do stuff } It didn't look right and sure enough, it should be 'foreach'. But it worked fine and that's my question - ...
    Peter FleckPeter Fleck
    Jul 24, 2003 at 4:59 pm
    Dec 31, 2003 at 1:15 am
  • Hi All I'm using perl to write a html page on the fly which includes photos of different sizes. Does anyone know of a bit of code that I can add to my script that ensures the resulting page shows the ...
    SupportSupport
    Jul 25, 2003 at 4:50 am
    Jul 30, 2003 at 9:41 pm
  • I'm looking at Archive::Zip to extract a single text file from a zip file that is ftped from a winders box to a unix box. The zip file conatins only one file, a .txt file, that is compressed pretty ...
    Dan MueyDan Muey
    Jul 30, 2003 at 6:10 pm
    Jul 30, 2003 at 8:21 pm
  • hi, I need a procedure to eleminate dupes in a @list Ex: @list1 = qw(two one two zero six five six seven zero); should be changed to: @list2 = qw(two one zero six five seven); There's no need to sort ...
    Juergen BertramJuergen Bertram
    Jul 24, 2003 at 9:00 am
    Jul 25, 2003 at 5:53 pm
  • I assumed that, $1 would be reset (either undefined or set to null) once I exited the scope of the while loop my regexp was called in. Sadly, I was mistaken. :) Below is a test example of code I ...
    Ed ChristianEd Christian
    Jul 21, 2003 at 1:53 pm
    Jul 22, 2003 at 12:46 pm
  • Hi, I have been trying to get this perl script to work, but I'm can't seem to figure out why it's not working. You can see it here: http://shawn.apocabilly.org/PGP/examples/example2-1.txt When I run ...
    Joel LopezJoel Lopez
    Jul 16, 2003 at 6:28 pm
    Jul 21, 2003 at 2:53 pm
  • Hi Friends, I have a hash whose values can be either array, hash etc. say i have: my $self = { 'hello how' = { 'r u' = 'I am', .... .... }, 'fine thank' = ['you'], 'see ya' = 'next time', .... .... ...
    Gupta, SharadGupta, Sharad
    Jul 10, 2003 at 11:21 pm
    Jul 11, 2003 at 10:59 pm
  • I have a variable amount of text files that need to get parsed. The files come in groups of 6. I only need to parse files 4 5 and 6. So if I had 3 groups waiting to be processed then I would have to ...
    Paul KrausPaul Kraus
    Jul 8, 2003 at 2:07 pm
    Jul 8, 2003 at 6:59 pm
  • What's an easy way to grab just one element out of a function that returns a list. For instance if I was to stat a file and all I wanted was the $atime or if I just wanted the three timestamps atime ...
    Paul KrausPaul Kraus
    Jul 7, 2003 at 1:27 pm
    Jul 8, 2003 at 8:55 am
  • Howdy all. I have the need to turn off strict refs for one line. I want to make sure strict refs is back on afterward. if(...) { no strict 'refs'; ...use refs here... use strict 'refs'; } Is that how ...
    Dan MueyDan Muey
    Jul 3, 2003 at 4:36 pm
    Jul 3, 2003 at 6:42 pm
  • It's like reading through a file. Once you've read to the end, additional calls to readdir return undef (or empty list). If you want to read the files again, you can use rewinddir() to reset the ...
    Bob ShowalterBob Showalter
    Jul 29, 2003 at 5:33 pm
    Jul 30, 2003 at 3:53 pm
  • Hello all, I seem to be stuck on subroutines. I've read the Perl for Beginners Wrox chapter on them, and I'm still a bit lost. My problem is passing a scalar to a subroutine, doing calculations ...
    Stuart WhiteStuart White
    Jul 16, 2003 at 2:51 pm
    Jul 23, 2003 at 4:27 am
  • Anyone have any ideas about this - is there a common mistake I might be making here? I am using a simple regex to extract a few pieces of every line of a 2000+ line text file then spitting it back ...
    Andrew ThomasAndrew Thomas
    Jul 18, 2003 at 6:43 pm
    Jul 22, 2003 at 12:08 am
  • Howdy list, Is there a better way to tell if a file exists than $ftp- size() being greater than zero Or $ftp- ls() Also if I delete a file with $ftp- delete($file); It will return 1 on success but if ...
    Dan MueyDan Muey
    Jul 9, 2003 at 10:44 pm
    Jul 10, 2003 at 9:46 pm
  • Hail to the list! I have just started to learn Perl, but I had a task come up that couldn't wait for my slow progress through Programming Perl, 3rd ed. This script renames files in a specified ...
    Barry C . HawkinsBarry C . Hawkins
    Jul 10, 2003 at 3:59 pm
    Jul 10, 2003 at 9:36 pm
  • I've got a function that takes several arguments, the first of which should be a scalar (specifically, a string). I'd like to have a precondition to verify that the argument is, in fact, a scalar. Is ...
    David StorrsDavid Storrs
    Jul 4, 2003 at 9:18 pm
    Jul 5, 2003 at 6:28 pm
  • Howdy: First off, many thanks to all (esp. R. Dixon and T. Lowery) for the help with the 'using table_info()' thread. I'm just about done with that script, but I have one tiny problem. In my SECOND ...
    Johnson, ShaunnJohnson, Shaunn
    Jul 2, 2003 at 9:21 pm
    Jul 3, 2003 at 1:23 pm
  • Hi all! I have this while loop in my script: while (($type ne "Windows") || ($type ne "Linux")) { print "Enter TYPE of server to build. Linux or Windoze [linux, windows]: \n"; $type = <STDIN ; chomp ...
    Bill AkinsBill Akins
    Jul 2, 2003 at 10:47 pm
    Jul 3, 2003 at 9:09 am
  • Platform: DELL 8200 with XP Prof. SP1 and Oracle 9.2 with the test DB. I'm new to PERL and need some guidance on getting to run on my PC. The PERL files were installed when I implemented Oracle 9.2. ...
    KENNETH JANUSZKENNETH JANUSZ
    Jul 30, 2003 at 4:27 pm
    Aug 10, 2003 at 8:09 pm
  • Hi! I need to make an array of 3000 elements, I have 7 arrays (sub-arrays?). I need to do this: Take first 9 of Arr1, push them to the BIG ARRAY and remove this 9 from the 'subarray' Take first 9 of ...
    Pablo FischerPablo Fischer
    Jul 31, 2003 at 4:08 am
    Aug 1, 2003 at 3:59 pm
  • Fellow Perl neophytes ( and non-neophytes), I need a little clarification. I am trying to remove files that are greater that 24 hours old. The code snippet below is in a 'while' loop that steps ...
    Tony EspositoTony Esposito
    Jul 17, 2003 at 4:24 pm
    Jul 17, 2003 at 6:21 pm
  • Greetings all, Given this code: my $TOKEN_DELIMS = qr/[^\w\-'\$]/; my $text = # string containing the contents of an mbox file my @tokens = split /$TOKEN_DELIMS/o, $text; I end up with a large number ...
    David StorrsDavid Storrs
    Jul 13, 2003 at 11:19 am
    Jul 14, 2003 at 12:12 pm
  • OK, I'm a real newbie, but even I am ashamed to be asking this. I want to search for a vertical mark ( | ) and replace it with something else (h). That's all - nothing fancy. What am I doing wrong ...
    Mike FlanniganMike Flannigan
    Jul 12, 2003 at 7:41 pm
    Jul 13, 2003 at 11:17 pm
  • If I do use DBI; my $dbh = DBI- connect('DBI:mysql:localhost','user','pass'); To connect to the mysql driver the package name is actually DBI::db not DBI. My question is: is it always going to be ...
    Dan MueyDan Muey
    Jul 31, 2003 at 9:50 pm
    Aug 4, 2003 at 5:26 pm
  • Hey all, I am using the perl-ldap module (to access MS AD, not that that matters to this question though :-). My problem is I don't understand part of the example code - it all works just fine, but ...
    Tim MussonTim Musson
    Jul 30, 2003 at 1:06 pm
    Jul 31, 2003 at 6:25 pm
  • I am trying to make a deep copy in a complex data structure. I have a hash that has all of its values as anonymous arrays. I need to copy the entire hash as a completely separate hash so that I can ...
    BseelBseel
    Jul 29, 2003 at 9:28 pm
    Jul 30, 2003 at 2:56 pm
  • Hi all, Sorry i'm very new to this. I have 2 lists of companies, not neccessarly in order, and i want to produce a list of companies which apear in both lists. Eg. List 1... Macdonalds HMV Virgin ...
    Jonathan MustoJonathan Musto
    Jul 21, 2003 at 2:27 pm
    Jul 24, 2003 at 4:40 pm
  • Hello, I'm working on my first Perl project. Most of my cgi programs work ok, but a look at the apache error log reveals this warning which is clear to me: Variable "$xy" will not stay shared at ...
    B. FongoB. Fongo
    Jul 17, 2003 at 5:26 am
    Jul 22, 2003 at 2:50 pm
  • I'm kind of new to Perl, so please forgive the question.. I'm trying to use perl to read a file and then run a program using the file. I also want to use the alarm(x) function to skip to the next ...
    DenisDenis
    Jul 11, 2003 at 11:54 pm
    Jul 14, 2003 at 7:53 am
  • if I have my $str = 'aw bcdefaw e a rt zzz kjkjkjaw qa' ; If I wish to replace everything between 'a' and 'zzz' With 'TXT' I do $str=~s/a[^a]+zzz/aTXTzzz/; This works fine. Now if I wish to replace ...
    RamprasadRamprasad
    Jul 12, 2003 at 7:19 am
    Jul 12, 2003 at 12:44 pm
  • Hi I wrote a program to read hex data and format the records and then output the formatted records in ASCII format to a file. The program is supposed to work on Win32 and UNIX (HP-UX). Everything ...
    Charles ScheepersCharles Scheepers
    Jul 4, 2003 at 9:54 am
    Jul 9, 2003 at 2:39 pm
  • Questions about editors have been asked many times, but i'm going to be a little more specific. I am in a Windows environment, and i love NotaTab. It is one of the few tools that makes me wonder how ...
    Zanardi2k3Zanardi2k3
    Jul 26, 2003 at 10:54 pm
    Sep 14, 2003 at 2:05 pm
  • This may be a bit off topic, but I'll ask it.. I have a perl job I want to run out of a cron job, However cron is not reading my .cshrc file by default. So what I have to do is "wrap" the perl job in ...
    DenisDenis
    Jul 28, 2003 at 8:26 pm
    Jul 29, 2003 at 8:19 pm
  • Hi there, What perl function can i use to extract a sub-string from a string. I have "myfile.txt", and i only want to print "myfile" to the screen , how can i do it ? Thanks.
    Joe EchavarriaJoe Echavarria
    Jul 28, 2003 at 5:15 pm
    Jul 29, 2003 at 5:25 pm
  • Howdy list! I was wondering if it's possible to run a funtion and have it set a bunch of variables. As in variables I didn't declare before. #/usr/bin/perl -w use strict; makevars(); # declares, and ...
    Dan MueyDan Muey
    Jul 28, 2003 at 8:12 pm
    Jul 28, 2003 at 10:26 pm
  • Hi! I have a string (its an array, the array has the values that $ftp- ls("dir) returns), so $array[1] contains this: -rw-r--r-- 1 pablo pablo 18944 Jul 16 21:14 File28903.zip What I would like to do ...
    Pablo FischerPablo Fischer
    Jul 25, 2003 at 6:48 pm
    Jul 28, 2003 at 4:13 pm
  • I am newbie here. I want to know if the perl program code can be protected such that noone else sees it. In other words,I have several perl codes and want to know if I can put out a file only as ...
    Kogulan, ReggieKogulan, Reggie
    Jul 24, 2003 at 3:27 pm
    Jul 27, 2003 at 5:12 am
  • I'm trying to write a script to perform a number of actions on files sent to me regularly on CD-ROMs. Unfortunately, the CD-ROM is generated on a Windows machine, often with spaces in the directory ...
    KEVIN ZEMBOWERKEVIN ZEMBOWER
    Jul 25, 2003 at 4:24 pm
    Jul 25, 2003 at 8:03 pm
  • Hi, I have a number $page = 500; now i want to check that if $page matches a word character then make $page =1; so originally i did this my $page =500; if(($page =~ /\w/) || ($page <= 0)){ $page=1; } ...
    AwarsdAwarsd
    Jul 24, 2003 at 9:10 am
    Jul 25, 2003 at 11:43 am
  • I have two subroutines that are have unexpected results. The first is passed an array ref to a list of file names. It then calls a subroutine and passes a file name to that subroutine. When that ...
    Paul KrausPaul Kraus
    Jul 10, 2003 at 2:24 pm
    Jul 11, 2003 at 10:25 am
Group Navigation
period‹ prev | Jul 2003 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions418
posts1,559
users285
websiteperl.org

285 users for July 2003

Dan Muey: 101 posts Rob Dixon: 86 posts John W. Krahn: 74 posts Wiggins d'Anconia: 47 posts Steve Grazzini: 40 posts Bob Showalter: 39 posts Jeff 'japhy' Pinyan: 38 posts Rob Dixon: 34 posts Jenda Krynicky: 32 posts Kevin Pfeiffer: 32 posts Paul Kraus: 31 posts Janek Schleicher: 30 posts Sudarshan Raghavan: 30 posts Pablo Fischer: 27 posts Charles K. Clarkson: 24 posts Kipp, James: 22 posts LI NGOK LAM: 22 posts Awarsd: 20 posts Bseel: 18 posts David Storrs: 18 posts
show more
Archives