Search Discussions

203 discussions - 743 posts

  • Can someone please provide some assitance with a multi-line matching problem? I have a datafile that looks like this: #### Input file ######## START foo1 bar1 END START foo2 bar2 END START foo3 bar3 ...
    Jose MalacaraJose Malacara
    Aug 25, 2005 at 10:43 pm
    Sep 27, 2005 at 11:39 am
  • OK, since everyone's making fun of my suggestion of using the output of a shell command as a means of getting a directory listing into an array <g , please explain to me what's wrong with this code ...
    Daniel KurtzDaniel Kurtz
    Aug 26, 2005 at 5:20 pm
    Sep 6, 2005 at 4:47 pm
  • Hi, How can I get all the " characters out of a csv file. Input looks like "bla bla";"bla bla";"bla bla" and it has to look like bla bla;bla bla; bla bla I tried $text=~ tr(#\"##); but perl keeps ...
    Bernard van de KoppelBernard van de Koppel
    Aug 30, 2005 at 8:15 pm
    Sep 2, 2005 at 9:56 am
  • The password used to access a ftp server is stored in a text file, the perl program gets the password from the file, the pass it to the ftp server for logon, this is the background. The requirement ...
    Ken PerlKen Perl
    Aug 29, 2005 at 4:55 am
    Aug 30, 2005 at 2:29 pm
  • Hi I am running the following script on EBCDIC use Encode; $string = "a"; $enc_string = encode("iso-8859-16", $string); print "\n String: $string\n"; print "\n enc_string: $enc_string\n"; The output: ...
    Aug 4, 2005 at 6:21 am
    Aug 19, 2005 at 12:35 pm
  • All, I think I am on the right track as far as what assertion to use. I need to print from one string to another using .. with \G My goal is to capture from allsets down. thank you Here is my code: ...
    Aug 2, 2005 at 5:36 pm
    Aug 3, 2005 at 2:23 pm
  • Perlers, I'd like to use Net::DNS to verify that that my external name servers are running DNS and returning the correct records. How does one specify an alternate DNS server to use when querying? ...
    Ryan FrantzRyan Frantz
    Aug 5, 2005 at 8:01 pm
    Oct 13, 2005 at 2:20 am
  • Hello Listers Is there any way in perl to effectively clear the contents of an ***existing*** file (making the file empty) ? I have a log file that I'd like to empty out after it reaches a certain ...
    Tony FrasketiTony Frasketi
    Aug 11, 2005 at 11:31 pm
    Aug 12, 2005 at 4:00 pm
  • Hi, I want to run PERL script which will combine several JAVA applications. Furthermore, I need this script to run in the HTML page. Is that possible? Can I run this locally on my machine, without a ...
    Aug 3, 2005 at 6:01 pm
    Aug 11, 2005 at 11:32 am
  • Hi all I have a problem need to work with date I have a input like these : 20050829 and I need to change it to something like this : Aug 29 2005 but it still eludes me how to do that can anyone help ...
    Gomez, JuanGomez, Juan
    Aug 27, 2005 at 1:13 pm
    Sep 29, 2005 at 7:08 pm
  • I have a series of EZMLM configuration files in the ~alias directory that look like this: main:/var/qmail/alias# cat cire/config F:-aBCdEFGHiJKlmnOpQrStuVWXYZ X: D:/var/qmail/alias/cire ...
    Aug 17, 2005 at 7:37 pm
    Aug 18, 2005 at 6:55 pm
  • Hi, I have the following data that I'm trying to parse into an array. There are 19 fields but with hosts 5 & 6 fields 6 & 7 do not have any space between them. This is how I get it from the OS and ...
    Keenan, Greg John (Greg)** CTR **Keenan, Greg John (Greg)** CTR **
    Aug 18, 2005 at 3:34 am
    Aug 19, 2005 at 12:33 am
  • Hi all, I have a text file with columns, where the columns may not be aligned, and not all lines may have data in all columns: header1 header2 header3 header4 ...
    Offer KayeOffer Kaye
    Aug 13, 2005 at 1:22 pm
    Aug 18, 2005 at 7:33 pm
  • How can I do this correctly? foreach my $col (@columns) { my %{$col} = ( string = "$col", number = \@{$col} ); push (@graph, \%{$col}); }
    Ryan PerryRyan Perry
    Aug 15, 2005 at 8:47 pm
    Aug 16, 2005 at 3:39 pm
  • I've got an array full of hashrefs: my @a = ( {N = ''}, {N = ''}, {N = ''}, {N = ''}, ); I want to sort this array, and print. I expect the output resemble: ...
    Jeremy KisterJeremy Kister
    Aug 9, 2005 at 10:03 am
    Aug 9, 2005 at 9:44 pm
  • Hi All~ my program below is not returning any errors but nothing is happening to the .txt files like I hoped. Can someone pls take a look and let me know what I'm doing wrong. ----- Thank you! ---- # ...
    Brian VolkBrian Volk
    Aug 3, 2005 at 3:51 pm
    Aug 5, 2005 at 6:34 am
  • I am new to perl and working for a small project... I need some help from you.. How to get all the first days of a week in a month.
    Anil Kumar, MalyalaAnil Kumar, Malyala
    Aug 29, 2005 at 9:29 am
    Aug 30, 2005 at 3:50 am
  • I've a file, which has entries like the following ... IDENTIFIER1=value1; IDENTIFIER2=value2; IDENTIFIER3=value3; etc I've got to parse the above file and am using a hash to do the same ... Here is ...
    Binish A RBinish A R
    Aug 26, 2005 at 4:56 pm
    Aug 27, 2005 at 6:43 pm
  • Interesting .. I would have thought that map would be faster, but it appears that foreach is, in this instance. curious.. :) 4:52pm {193} localhost:/home/webadmin/ $ perl bench.pl Benchmark: running ...
    Scott R. GodinScott R. Godin
    Aug 24, 2005 at 9:04 pm
    Aug 26, 2005 at 6:27 pm
  • I'd like to open 2-way pipe to a tool that we have here. It's called yprtool and once it's open, you give it 3 numbers to its STDIN and it spits out 3 numbers to its STDOUT. It stays open until you ...
    Bryan R HarrisBryan R Harris
    Aug 24, 2005 at 4:22 pm
    Aug 24, 2005 at 9:47 pm
  • Hi: In the following piece of script, I would like to convert the $time after * by 2.0 to floating point, for instance i want 0*2 to be printed as 0.0; How to do that? if ($_ =~ ( /TEMP/ )) { my ...
    Vineet PandeVineet Pande
    Aug 17, 2005 at 2:58 pm
    Aug 18, 2005 at 3:39 am
  • Hello everyone, I need some help to fix a problem in mailgraph.pl script. I'm not a perl programmer, so i hope to find a little help here... I need to translate an old code which is parsing my ...
    Aug 9, 2005 at 6:43 pm
    Aug 11, 2005 at 2:02 pm
  • Each call to system() creates a separate process in which the command is executed. The cd command only affects that separate process. You need to use Perl's chdir() function to change the working ...
    Bob ShowalterBob Showalter
    Aug 29, 2005 at 1:14 pm
    Aug 30, 2005 at 12:34 pm
  • Can anyone help me with this, I've read FAQ7 but still can't figure out what's wrong here - I'm probably overlooking something very basic in linux permissions. The strange thing is, scripts are ...
    Kris Van BruwaeneKris Van Bruwaene
    Aug 24, 2005 at 11:48 am
    Aug 26, 2005 at 6:53 pm
  • I'd like to create a quantity discount table based on the following criterion quantity 1 - 9 0% quantity 10 - 19 25% quantity 20 - 199 40% quantity 200 - 499 50% quantity 500+ 55% I'd like to read it ...
    Scott R. GodinScott R. Godin
    Aug 15, 2005 at 3:21 pm
    Aug 25, 2005 at 6:44 pm
  • Hi all I need to remove the string "room" (notice the check for a space too) and also to check for spaces in the beginnig and then maybe at the end of the total string. $p110rm01 =~ ...
    Brent ClarkBrent Clark
    Aug 23, 2005 at 9:43 am
    Aug 23, 2005 at 10:23 am
  • Not exactly perl, but ... Is there a simple formula to round some value X up to the next multiple of some other value T? I remember seeing another formula for rounding a value X to the nearest ...
    Bryan HarrisBryan Harris
    Aug 20, 2005 at 12:01 am
    Aug 22, 2005 at 12:49 pm
  • Note: forwarded message attached.
    Anu pAnu p
    Aug 19, 2005 at 6:01 am
    Aug 19, 2005 at 8:27 pm
  • Hi, Need some help with a regex please. I need to search a file for every instance of a string that ends with %. Think output from the df command. I need the 1, 2 or 3 digits before the % passed into ...
    Keenan, Greg John (Greg)** CTR **Keenan, Greg John (Greg)** CTR **
    Aug 17, 2005 at 12:09 am
    Aug 18, 2005 at 12:18 am
  • Hi Beginners, I a new Perl programmer dealing with issues of scope. I'm trying to write a simple library using strict. The script that runs the library is also strict. I can get the two to work ...
    Aug 13, 2005 at 9:13 am
    Aug 14, 2005 at 6:11 pm
  • I have a situation where a CGI script has to start an independent perl script and exit without capturing the output or waiting for the exit code. It doesnt make any practicle sense to me as this perl ...
    Aug 2, 2005 at 6:29 pm
    Aug 3, 2005 at 5:06 pm
  • Hi, I have tried to find out the time a perl program runs, and I have used: #at the start of the program: my $begin = (times)[0]; my $begin_t = time(); ... The program follows # at the end of the ...
    Octavian RasnitaOctavian Rasnita
    Aug 26, 2005 at 3:29 pm
    Nov 29, 2005 at 7:04 pm
  • Is there any easy to customize GUI-based menu-ing script for UNIX? I currently have a text-base menu program for gluing my applications, and I am interested in putting in revising it to a GUI-based ...
    William AmpehWilliam Ampeh
    Aug 25, 2005 at 6:23 pm
    Aug 31, 2005 at 11:44 pm
  • Hi All, Is there a way to get an entire directory and all sub-files/folders size in Perl? Basicly, I need the Perl version of "du -s". I've currently done it with stat but this only gives a directory ...
    Aug 28, 2005 at 5:26 pm
    Aug 30, 2005 at 5:06 pm
  • All, This is my first attempt at using perl to work with a windows system and need some help. I need to check for some registry entries made by a virus and remove them. Which is the best module for ...
    Tim WolakTim Wolak
    Aug 29, 2005 at 6:08 pm
    Aug 29, 2005 at 6:30 pm
  • I keep getting hung up on what I think would be a simple problem. I was to do approximately this: Given an array of "stuff" print them out print join(",", @row),"\n"; works great until your array ...
    Tom AllisonTom Allison
    Aug 26, 2005 at 11:19 am
    Aug 26, 2005 at 7:50 pm
  • Hi Friends, Can someone help me to get this module. I am trying to dowbload the module from http://search.cpan.org/search?query=first+day+of+every+week&mode=all But it is corrupted. It is little ...
    Anil Kumar, MalyalaAnil Kumar, Malyala
    Aug 26, 2005 at 3:37 am
    Aug 26, 2005 at 5:19 am
  • Hi, I am trying to speed up a site that uses mod_perl because it works slowly. I have done many changes in MySQL queries and they are working now much faster, but the site is still slow and I think ...
    Octavian RasnitaOctavian Rasnita
    Aug 25, 2005 at 9:26 am
    Aug 25, 2005 at 6:56 pm
  • Hi, all! I'm learning about dealing with sockets in Perl, and I've got a question about some unexpected behaviour exhibited by the following test script. In the case where I open a connection and ...
    Mason Loring BlissMason Loring Bliss
    Aug 23, 2005 at 3:11 pm
    Aug 25, 2005 at 1:40 pm
  • Hi, I am trying to use system to run a command on a remote machine. system "ssh", $remote_host[0], "sudo", "-u", "nobody", "/usr/bin/remote_command", "--arg1", $arg1, "--arg2", $arg2; The problem I ...
    Grover mitchellGrover mitchell
    Aug 24, 2005 at 10:16 pm
    Aug 25, 2005 at 12:25 pm
  • Dear All, Kindly let me know what is closure and why we need it. regards Prabahar Send a rakhi to your brother, buy gifts and win attractive prizes. Log on to ...
    Praba harPraba har
    Aug 25, 2005 at 5:16 am
    Aug 25, 2005 at 12:21 pm
  • Hi, I use perl once in a while for my office work, but I want to have more practice of it. It would be great if any one can suggest me some nice websites which have good practical perl examples. It ...
    Anu pAnu p
    Aug 23, 2005 at 9:14 pm
    Aug 25, 2005 at 12:06 am
  • Hello all, I have a CGI script that I need to display the output of a shell program, basically a simple C program that parses some text. The output is right to the browser, and I don't want it to be ...
    Scott TaylorScott Taylor
    Aug 23, 2005 at 9:56 pm
    Aug 24, 2005 at 12:27 am
  • How can I force array context ... like # echo hello: world | perl -lne '$aref = split(/:/, $_); print $aref' but thatz giving the length of the array ... I want $aref to be a reference ... How is ...
    Binish A RBinish A R
    Aug 20, 2005 at 3:14 pm
    Aug 21, 2005 at 4:52 am
  • In the code below, I thought $array[2] and $array- [2] were different but they give me the same result. Any explaination for this? my @array = (1,2,3); my $array =\@array; print ref($array); print ...
    Dave AdamsDave Adams
    Aug 19, 2005 at 2:31 pm
    Aug 19, 2005 at 4:08 pm
  • Hi list I have a problem whereby another new programmer (like myself) likes NOT to use strict in his code where by I do. The problem is that I have is that he as writting a pm file and basically just ...
    Brent ClarkBrent Clark
    Aug 19, 2005 at 7:40 am
    Aug 19, 2005 at 3:54 pm
  • Hi, I am having a problem. I have a string ($newval) that has quotes (") in it: $newval="hba0-SCSI-target-id-7-name=\"0011884455667733\""; I can print $newval and I see this: print "Variable newval = ...
    Aug 17, 2005 at 2:16 pm
    Aug 17, 2005 at 11:08 pm
  • Hi, It seems that whatever software manager an operating system has, still, programs installed manually from their sources are difficult to removed. Do you have a script that will accomlish this job ...
    Harold CastroHarold Castro
    Aug 16, 2005 at 8:18 am
    Aug 17, 2005 at 11:31 am
  • Hi: In the following perl script, I would like to print all the lines in a file (mdout_short.txt) to temp.txt which have "NSTEP" as a word: ************************************************ use ...
    Vineet PandeVineet Pande
    Aug 17, 2005 at 10:53 am
    Aug 17, 2005 at 11:29 am
  • hi, In the following code which reads a file.txt (SEE ATTACHMENT) where I am trying to understand how to put the DNA sequence in to a single string... print "enter file with DNA sequence: "; $seqfile ...
    Vineet PandeVineet Pande
    Aug 8, 2005 at 3:39 pm
    Aug 9, 2005 at 10:42 pm
Group Navigation
period‹ prev | Aug 2005 | next ›
Group Overview
groupbeginners @

195 users for August 2005

John W. Krahn: 51 posts Jeff 'japhy' Pinyan: 34 posts Chris Devers: 19 posts Binish A R: 18 posts Wiggins d'Anconia: 18 posts Brent Clark: 16 posts Octavian Rasnita: 16 posts Tom Allison: 15 posts Xavier Noria: 15 posts John Doe: 14 posts Bob Showalter: 13 posts Daniel Kurtz: 12 posts JupiterHost.Net: 12 posts Ryan Frantz: 12 posts Timothy Johnson: 12 posts Tony Frasketi: 12 posts Manav Mathur: 11 posts Michael Gale: 11 posts Dave Gray: 10 posts Muthukumar: 10 posts
show more