FAQ

Search Discussions

184 discussions - 725 posts

  • Hello everyone I would like to sort an array so that it does not contain any values twice or three times. Unfortunately, perldoc -q sort does not help me very much. Here is an example of this array : ...
    SFantarSFantar
    Aug 15, 2006 at 12:02 pm
    Aug 15, 2006 at 6:22 pm
  • I am trying to use an html script that will select an expect script, run it and display the output as text back into the html page. I get a very brief box showing up, it is so fast I am not sure what ...
    HelenHelen
    Aug 29, 2006 at 7:08 pm
    Aug 31, 2006 at 6:01 pm
  • Hi, I need to remove all characters from a string except 'a'..'z', 'A'..'Z', and '0'..'9'. Could somebody please tell me the magicWords for: $newstring = magicWords($oldstring); ??? I am absolutely ...
    Jim SchuecklerJim Schueckler
    Aug 25, 2006 at 9:27 pm
    Aug 26, 2006 at 10:27 am
  • In my perl script, I have a "global" variable called @excludedIPAddresses, declared at the top of the script using my: ---------------------------------------- use strict; use warnings; use ...
    Roman DaszczyszakRoman Daszczyszak
    Aug 31, 2006 at 1:19 pm
    Sep 1, 2006 at 3:18 pm
  • Hi, My perl program calls a batch file on a remote machine. Now my question is how to return a value from that batch script and how to grab it in the perl file? Regards, Shourya Infosys Technologies ...
    Shourya SenguptaShourya Sengupta
    Aug 3, 2006 at 6:15 pm
    Aug 7, 2006 at 3:48 am
  • Hi All, I'm working on a bit of code to parse a logfile, grab the IP's and put them in the deny file. In the beginning of my code I'm grabbing all the IP's in the deny file, putting them in an array ...
    Tim WolakTim Wolak
    Aug 3, 2006 at 3:58 pm
    Aug 4, 2006 at 10:20 pm
  • Hello all, I am writing a script to monitor a file and if a line is matched write it to a file, then grab the IP address from that line and write it to another file. As I'm ok on working with the ...
    Tim WolakTim Wolak
    Aug 2, 2006 at 3:41 pm
    Sep 29, 2006 at 3:42 pm
  • hello dear Perl-addicted, to admit - i am a Perl-novice and ihave not so much experience in perl. But i am willing to learn. i want to learn perl. As for now i have to solve some tasks for the ...
    Jobst müllerJobst müller
    Aug 25, 2006 at 11:54 pm
    Aug 26, 2006 at 3:35 pm
  • Dear all, I have an array of array look like this: @array_of_array=( [1,2,3,4,5], [1,2,3,4,5], [1,2,3,4,5], [1,2,3,4,5] ) How do I get the total values for each colume, such as $column1=1+1+1+1; ...
    Chen liChen li
    Aug 18, 2006 at 1:29 pm
    Aug 19, 2006 at 3:44 pm
  • Hi, Is there any way, to force a line break in POD, without starting a new paragraph? Regards, Peter Daum
    Peter DaumPeter Daum
    Aug 6, 2006 at 3:41 pm
    Aug 8, 2006 at 2:16 pm
  • Hello, Given the string 'abcdefghijklmnopq', I wish to add a line break every 5 characters: abcde fghij klmno pq Method 1 below works, but my split() in method 2 captures 'something unexpected' at ...
    Hien LeHien Le
    Aug 29, 2006 at 11:52 am
    Aug 30, 2006 at 7:48 am
  • Hello,lists, Please see these two lines' output: [$ perl -Mstrict -MTime::Local -le 'print timelocal(0,0,0,31,8,2006)' Day '31' out of range 1..30 at -e line 1 $ perl -Mstrict -MTime::Local -le ...
    Practical PerlPractical Perl
    Aug 29, 2006 at 4:48 pm
    Aug 30, 2006 at 3:48 am
  • All, I am trying to run logic that will copy/delete 3 versions of log.\d+ files to their respective directories. Because there are so many directories, I have built a hash table instead of using a ...
    Derek B. SmithDerek B. Smith
    Aug 28, 2006 at 1:37 pm
    Aug 29, 2006 at 7:50 pm
  • Why do these two commands not produce the same output? $ perl -le 'print join("--", split(/: /, "a: b"))' a--b $ echo 'a: b' | perl -F'/: /' -lane 'print join("--", @F)' a: b From reading 'perldoc ...
    Robert CitekRobert Citek
    Aug 25, 2006 at 7:43 pm
    Aug 25, 2006 at 9:43 pm
  • I have a program which should create a new image after deleting the old. Image names have $$ embeded to assure uniqueness (within a reasonable period of time). The following backticks don't work as ...
    John AckleyJohn Ackley
    Aug 19, 2006 at 6:37 pm
    Aug 20, 2006 at 8:00 pm
  • Down, near the bottom of this example code (marked), I'm trying to count the number of elements of an array which is the value of a key in a hash which is, itself, an element of an array. So far, ...
    James MarksJames Marks
    Aug 9, 2006 at 7:33 am
    Aug 9, 2006 at 9:46 am
  • All, Is there a commonly known way or method to limit the number of arguments that a subroutine can store or pass? thank you derek
    Derek B. SmithDerek B. Smith
    Aug 30, 2006 at 5:56 pm
    Aug 30, 2006 at 7:14 pm
  • Hi, Anyone know of a good online reference/tutorial for perl/Tk, especially in area of layouts (pack/grid/?)? Can't seem to get things lined up as I'd like. Also, anyone know how to (easily) get a ...
    John Cortland Morgan \(ZG/ETK\)John Cortland Morgan \(ZG/ETK\)
    Aug 25, 2006 at 1:54 pm
    Aug 28, 2006 at 10:09 pm
  • Hi, I don't know if this is the right mailing list for this question. Let me know if I should go somewhere else. The issue is a number rounding problem. Here is my perl snippet: $credit = "64.63"; ...
    Howard, ChrisHoward, Chris
    Aug 28, 2006 at 4:50 pm
    Aug 28, 2006 at 7:44 pm
  • Hi, I am new to the list and newbie in perl. I have a big flat file(100G). The file was supposed to be in a single line but many of records(as it has ^M). There are also ^@ and tabs in between. I ...
    Saravana KumarSaravana Kumar
    Aug 14, 2006 at 10:15 am
    Aug 17, 2006 at 7:08 am
  • Hi, I am trying to open a binary file and find a string that begins: <x:xapmeta xmlns:x='adobe:ns:meta/ I then want all the data, up to and including the end tag which looks like this: </x:xapmeta It ...
    BeginnerBeginner
    Aug 11, 2006 at 3:36 pm
    Aug 14, 2006 at 11:15 am
  • Hi, I have a program that contains a pretty big block of text: my $text = <<EOF; line1 line2 ... line 120000 EOF I want to read this block of text line by line and analyse each line without needing ...
    Octavian RasnitaOctavian Rasnita
    Aug 9, 2006 at 4:14 pm
    Aug 9, 2006 at 9:23 pm
  • I'm having some trouble using a hash of arrays. I thought I was starting to understand the jumbled mass of variable use in Perl, but perhaps not... Instead of the missing switch() statement, I'm ...
    N\[ate\]vwN\[ate\]vw
    Aug 8, 2006 at 5:12 pm
    Aug 9, 2006 at 10:44 am
  • Hello Is there a downloadable manual for perl? I would like to download the manual onto my laptop before I go on vacation. I really want to avoid bringing extra books. Andrew
    AndrewmchorneyAndrewmchorney
    Aug 3, 2006 at 5:28 pm
    Aug 4, 2006 at 12:22 pm
  • Hi All, Following is the code which i am executing but i am not getting the output of command my $out = system($cmd); into the file. Plz help. Regards Irfan. #########/usr/atria/bin/Perl -w use ...
    Sayed, Irfan \(Irfan\)Sayed, Irfan \(Irfan\)
    Aug 2, 2006 at 3:40 pm
    Aug 3, 2006 at 2:58 pm
  • Hi, I've just searched the web and tried the archives but that is down at the moment. I'm reading a parameter file: PARAM=value PARAM1=value2 Etc. and this works great, but all of a sudden...I need ...
    Jerry RocteurJerry Rocteur
    Aug 2, 2006 at 8:59 am
    Sep 29, 2006 at 2:35 pm
  • Hi All Can anybody suggest me any module/script that can be used to split and image into pieces? I tried to search in CPAN also googled a lot. I could only find image splitting software......but I ...
    Nagasamudram, Prasanna KumarNagasamudram, Prasanna Kumar
    Aug 28, 2006 at 11:22 am
    Aug 29, 2006 at 9:38 am
  • Hey, I'm trying to send mail over my server (1and1.com). They require smtp authentication in order to send. I'm using windows XP. Here is my code: #!/usr/bin/perl -w use strict; use Net::SMTP; my ...
    Alan SandersAlan Sanders
    Aug 25, 2006 at 10:28 pm
    Aug 26, 2006 at 11:33 pm
  • Dear Frndz, I am writing the below code and i am facing a problem in chomp (its an HP UX Box) --------------------Code---------------------------- #!/usr/bin/perl use strict; use warnings; my ...
    MazharMazhar
    Aug 21, 2006 at 6:52 pm
    Aug 22, 2006 at 3:47 pm
  • Hello everybody Is there any Perl module for WAP programming generating web pages readable on mobile phones? I had a look at http://cpan.perl.org but the results found did not help me very much. ...
    SFantarSFantar
    Aug 20, 2006 at 8:46 pm
    Aug 22, 2006 at 5:04 am
  • Dear all, I try to read some records in one file. Each record consists of several column which are separated by tab and ends by "\n". What I would like to do is that to build an array of array so ...
    Chen liChen li
    Aug 20, 2006 at 6:13 pm
    Aug 21, 2006 at 1:04 pm
  • I have a simple - yet trivial problem - I 2000 directory at /home2/foo/foodir/ . I need to copy all files with extension *.atm and *.ali to another directory called temp (say /home2/foo/foodir/temp ) ...
    I BioKidI BioKid
    Aug 19, 2006 at 7:19 am
    Aug 20, 2006 at 7:04 pm
  • Hiya all, Here's a sceneraio: I have a directory tree: A- -- D- - E In this directory tree I have possibly several same named files in different directories. What I want to do is to recursively copy ...
    Steve JardineSteve Jardine
    Aug 16, 2006 at 9:11 pm
    Aug 19, 2006 at 2:29 am
  • Hi all, I have two database tables, one is local and one is on a WAN. They are supposed to be in-sync but they at the moment, they are not. There are 8million+ plus rows on this table. I tried to do ...
    BenbartBenbart
    Aug 16, 2006 at 9:36 pm
    Aug 17, 2006 at 11:15 pm
  • Dear all, I have an array contains 12 numbers. I want to calculate the mean and standard deviation for very three numbers. I just wonder which math module is available to do the job. Thanks, Li
    Chen liChen li
    Aug 14, 2006 at 11:12 pm
    Aug 16, 2006 at 1:44 pm
  • Hello, I am not shure if I post this question in the right mailing list, but let's try.. ;-) I want to use Perl to monitor the audio level of a line input from the soundcard, in other words, I want ...
    Maarten DekkerMaarten Dekker
    Aug 14, 2006 at 8:20 am
    Aug 15, 2006 at 12:13 pm
  • Hi all, I currently have a MS-DOS batch file that am trying to convert to a Perl script. I have something like this in the .BAT file where variables are "set" based on some parsing of a variable ...
    BenbartBenbart
    Aug 13, 2006 at 1:07 pm
    Aug 14, 2006 at 5:51 am
  • Hi all, Can some please advise how to get this to work? print "matches" if $string =~ m/$pattern/; Am trying to search for a pattern but the pattern has to be a variable. Thanks in advance.
    BenbartBenbart
    Aug 12, 2006 at 4:16 am
    Aug 12, 2006 at 5:14 am
  • I'm pretty new to Perl, my past experience has been in modifying other peoples code in order to do what I want it to do but now I'm trying to write my own to do a specific task that I can't find code ...
    Wesley BressonWesley Bresson
    Aug 3, 2006 at 6:27 pm
    Aug 5, 2006 at 8:40 pm
  • I'm trying to pattern match the beginning of a SQL string like: INSERT INTO `rwikiobject` VALUES ('0b5e02f308c5341d0108fca900670107','2006-03-06 ...
    Paul BeckettPaul Beckett
    Aug 4, 2006 at 9:26 am
    Aug 5, 2006 at 1:57 pm
  • Hi, Can anybody plz guide , which is the best book to learn perl. some good names plz Regards Irfan.
    Sayed, Irfan \(Irfan\)Sayed, Irfan \(Irfan\)
    Aug 2, 2006 at 8:37 am
    Aug 4, 2006 at 11:58 am
  • 5

    DBI

    Hi, I get an error message I don't understand. I've been following what I thought was good practice when talking to a DB. All help/comments appreciated! Some code: ############################3 use ...
    Bjørge SolliBjørge Solli
    Aug 1, 2006 at 1:26 pm
    Aug 3, 2006 at 10:14 am
  • databaserequest_noun($col, $table, $case) is a self written function based on the dbi manual's proposals. here's the code: sub databaserequest_noun { my ($col,$table,$case) = @_; my $database = ...
    Dr. Claus-Peter BeckeDr. Claus-Peter Becke
    Aug 1, 2006 at 1:13 pm
    Aug 2, 2006 at 2:47 pm
  • Hi all, I'd be interested in compiling programs I write in PERL. This is possible, right? I see occasional mention of such here and there but can't seem to find information on how it might be done. I ...
    hOURShOURS
    Aug 13, 2006 at 4:28 pm
    Sep 15, 2006 at 10:22 pm
  • Hi, I would like to connect to a database stored at linux machine from my Windows machine. But I am unable to connect to the mysql server. Please help me regarding this issue. ...
    Manne, Siva Chaitanya PrasadManne, Siva Chaitanya Prasad
    Aug 30, 2006 at 1:34 pm
    Aug 30, 2006 at 4:24 pm
  • I have a daemon process that works but I am currently running it with script.pl error.log 2 &1 and I want to do the same thing without using the redirection,, remove the human error when starting the ...
    Ken FoskeyKen Foskey
    Aug 29, 2006 at 2:06 pm
    Aug 30, 2006 at 3:28 am
  • Hi All, I have a following script in perl in which i am using awk command but it is not getting executed properly. # /usr/atria/bin/Perl -w use strict; use warnings; my $fname = "/tmp/checkvob_log"; ...
    Sayed, Irfan \(Irfan\)Sayed, Irfan \(Irfan\)
    Aug 29, 2006 at 3:41 pm
    Aug 29, 2006 at 7:50 pm
  • Hi All, I need to use the split function in perl script. * /vobs/apache_log4j /usr/add-on/puccase_vob01/ccvob01/apache_log4j.vbs public (replicated) Above line i need to split in following order * ...
    Sayed, Irfan \(Irfan\)Sayed, Irfan \(Irfan\)
    Aug 29, 2006 at 1:23 pm
    Aug 29, 2006 at 2:55 pm
  • List, I am trying to set a variable based on a system call. Here is my code: #!/usr/bin/perl use strict; my $test = system `/usr/bin/snmpget -v1 10.1.11.18 -c secret ...
    Curt ShafferCurt Shaffer
    Aug 28, 2006 at 1:46 pm
    Aug 28, 2006 at 4:09 pm
  • Hello, we are trying to setup an remote system to obtain account data records for our client, which can be exported out as HTML or CSV file. The problem is after the script remotely logs in, ...
    Mike BlezienMike Blezien
    Aug 26, 2006 at 1:31 am
    Aug 26, 2006 at 9:16 pm
Group Navigation
period‹ prev | Aug 2006 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions184
posts725
users183
websiteperl.org

183 users for August 2006

John W. Krahn: 69 posts Mumia W.: 46 posts Tom Phoenix: 37 posts Dr.Ruud: 34 posts Rob Dixon: 34 posts Chen li: 17 posts Timothy Johnson: 17 posts Zentara: 15 posts BenBart: 14 posts Charles K. Clarkson: 14 posts Ken Foskey: 13 posts Derek B. Smith: 10 posts JupiterHost.Net: 10 posts Mike Blezien: 10 posts Xavier Noria: 10 posts D. Bolliger: 8 posts Nath, Alok (STSD): 8 posts Smith, Derek: 8 posts Adriano Ferreira: 7 posts Randal L. Schwartz: 7 posts
show more
Archives