Search Discussions
-
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 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 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 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 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: ...
Sastry
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: ...
Dbsmith
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 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 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 ...
Sonia
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, 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 ...
KEVIN ZEMBOWER
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 **
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 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 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 = '10.1.2.1'}, {N = '10.1.9.1'}, {N = '10.3.5.1'}, {N = '10.1.1.3'}, ); I want to sort this array, and print. I expect the output resemble: 10.1.1.3 ...
Jeremy 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 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, 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 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. 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 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 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 ...
Alex
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 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 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. 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 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 Harris
Aug 20, 2005 at 12:01 am
Aug 22, 2005 at 12:49 pm -
Note: forwarded message attached.
Anu 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 **
Aug 17, 2005 at 12:09 am
Aug 18, 2005 at 12:18 am -
5
Scope
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 ...Tmatsumoto
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 ...
Ram
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 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 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 ...
Nick
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 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 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, 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 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 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 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 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 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 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 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 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 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 = ...
Todd
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 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 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 Pande
Aug 8, 2005 at 3:39 pm
Aug 9, 2005 at 10:42 pm
195 users for August 2005
Archives
- May 2016 (29)
- March 2016 (38)
- February 2016 (66)
- January 2016 (62)
- December 2015 (36)
- November 2015 (59)
- October 2015 (35)
- September 2015 (32)
- April 2015 (18)
- March 2015 (101)
- February 2015 (74)
- January 2015 (99)
- December 2014 (74)
- November 2014 (65)
- October 2014 (47)
- September 2014 (66)
- August 2014 (68)
- July 2014 (171)
- June 2014 (85)
- May 2014 (126)
- April 2014 (36)
- March 2014 (162)
- February 2014 (154)
- January 2014 (94)
- December 2013 (42)
- November 2013 (71)
- October 2013 (192)
- September 2013 (143)
- August 2013 (114)
- July 2013 (141)
- June 2013 (201)
- May 2013 (163)
- April 2013 (90)
- March 2013 (125)
- February 2013 (150)
- January 2013 (185)
- December 2012 (120)
- November 2012 (101)
- October 2012 (117)
- September 2012 (180)
- August 2012 (319)
- July 2012 (170)
- June 2012 (223)
- May 2012 (249)
- April 2012 (298)
- March 2012 (311)
- February 2012 (261)
- January 2012 (155)
- December 2011 (282)
- November 2011 (266)
- October 2011 (316)
- September 2011 (369)
- August 2011 (371)
- July 2011 (310)
- June 2011 (392)
- May 2011 (434)
- April 2011 (630)
- March 2011 (440)
- February 2011 (282)
- January 2011 (419)
- December 2010 (319)
- November 2010 (314)
- October 2010 (360)
- September 2010 (256)
- August 2010 (223)
- July 2010 (340)
- June 2010 (298)
- May 2010 (483)
- April 2010 (683)
- March 2010 (480)
- February 2010 (339)
- January 2010 (322)
- December 2009 (531)
- November 2009 (558)
- October 2009 (375)
- September 2009 (449)
- August 2009 (497)
- July 2009 (428)
- June 2009 (306)
- May 2009 (293)
- April 2009 (362)
- March 2009 (477)
- February 2009 (467)
- January 2009 (408)
- December 2008 (405)
- November 2008 (545)
- October 2008 (770)
- September 2008 (662)
- August 2008 (663)
- July 2008 (773)
- June 2008 (730)
- May 2008 (650)
- April 2008 (791)
- March 2008 (692)
- February 2008 (399)
- January 2008 (694)
- December 2007 (581)
- November 2007 (688)
- October 2007 (882)
- September 2007 (709)
- August 2007 (1,243)
- July 2007 (849)
- June 2007 (898)
- May 2007 (796)
- April 2007 (587)
- March 2007 (705)
- February 2007 (521)
- January 2007 (578)
- December 2006 (565)
- November 2006 (555)
- October 2006 (704)
- September 2006 (734)
- August 2006 (725)
- July 2006 (884)
- June 2006 (681)
- May 2006 (703)
- April 2006 (889)
- March 2006 (724)
- February 2006 (607)
- January 2006 (588)
- December 2005 (684)
- November 2005 (664)
- October 2005 (682)
- September 2005 (616)
- August 2005 (743)
- July 2005 (716)
- June 2005 (670)
- May 2005 (809)
- April 2005 (830)
- March 2005 (1,020)
- February 2005 (740)
- January 2005 (784)
- December 2004 (873)
- November 2004 (910)
- October 2004 (1,242)
- September 2004 (936)
- August 2004 (911)
- July 2004 (1,101)
- June 2004 (1,026)
- May 2004 (945)
- April 2004 (1,161)
- March 2004 (1,485)
- February 2004 (1,608)
- January 2004 (1,512)
- December 2003 (1,607)
- November 2003 (1,437)
- October 2003 (1,314)
- September 2003 (1,382)
- August 2003 (1,351)
- July 2003 (1,559)
- June 2003 (1,576)
- May 2003 (1,586)
- April 2003 (1,600)
- March 2003 (1,731)
- February 2003 (1,641)
- January 2003 (2,020)
- December 2002 (1,360)
- November 2002 (1,198)
- October 2002 (1,677)
- September 2002 (1,905)
- August 2002 (1,685)
- July 2002 (1,975)
- June 2002 (1,900)
- May 2002 (2,332)
- April 2002 (2,098)
- March 2002 (1,658)
- February 2002 (2,237)
- January 2002 (2,304)
- December 2001 (1,568)
- November 2001 (1,823)
- October 2001 (1,712)
- September 2001 (1,289)
- August 2001 (1,993)
- July 2001 (2,424)
- June 2001 (3,399)
- May 2001 (1,797)
- April 2001 (650)