Search Discussions
-
yes I agree I was a little ambiguous... I was in a hurry. sorry. Anyway here is my updated code. and here is a sample output: My goal is to get all F01 which I am but I am having issues capturing all ...
Dbsmith
Apr 27, 2005 at 12:54 pm
Apr 29, 2005 at 10:11 pm -
hello, I'm making a simple script that's supposed to update a certain number of boxes, spread around the area. my script is supposed to to connect to every hosts (via a file named "hosts") using ssh, ...
Gui
Apr 4, 2005 at 7:15 pm
Jun 13, 2005 at 6:20 pm -
Why would one use Require instead of Use?
Paul Kraus
Apr 21, 2005 at 1:03 pm
Apr 22, 2005 at 1:42 am -
Hi All, I am using the spreadsheet::parseexcel module to open up a series (31) spreadsheets and grab the row counts. Here is an excerpt with the ParseExcel Code. my $oBook; my $oWks; foreach ...
Craig Moynes
Apr 26, 2005 at 5:25 pm
Apr 27, 2005 at 11:11 pm -
Hello, Does anyone know of a website that lists some programming exercises to help in learning perl? I find it a lot easier to learning a language if I have exercises to apply it to.
Stephen Day
Apr 18, 2005 at 5:47 pm
Apr 20, 2005 at 1:34 am -
Hi, all: Below is a script to extract jpegs from an image of a corrupted or accidentally erased CF or other removable media from a digital camera. It's (heavily) modified from some C++ code I found ...
Jay Savage
Apr 12, 2005 at 9:50 pm
Apr 14, 2005 at 2:54 pm -
Hi, I have following code that measure the substring. It basically the number of positions of substrings that occur (dotted count) CASE A: ....... ....... ...... GATTACGAGTGGCGCTCGTGTAACGGCA #Score ...
Edward Wijaya
Apr 8, 2005 at 5:07 pm
Apr 9, 2005 at 10:40 am -
9
Password
Hi, I am a newbie to perl and I have a question. In one of my project, the perl script will create a logfile. Inside the log file, the username/password is in clear text. I am trying to hide the ...Rentachintala, Jagan
Apr 26, 2005 at 9:59 pm
May 2, 2005 at 2:08 pm -
Hi.... Can any one suggest a good algorithm for encrpt and decrypt the files ..I donot want to use any perl module for that... Thanks Anish
Anish Kumar K
Apr 18, 2005 at 9:08 am
Apr 20, 2005 at 8:19 am -
Hi, I'm parsing a log file that contains this format: 1112677214 31388202 181264589 1112677214 8843 59460 8843 59460 1112676919 10728 59045 10728 59045 1112676900 10617 59006 10728 59045 1112676600 ...
Harold Castro
Apr 5, 2005 at 6:13 am
Apr 8, 2005 at 8:50 pm -
Hi All, Here is my code so far. I am really getting frustrated with my inability to get this right. I didn't understand Chris' earlier suggestion about using defined but I tried using it anyway. I ...
Keith Worthington
Apr 20, 2005 at 7:11 pm
Apr 21, 2005 at 3:02 pm -
Why does this work.... my $date = 'one | two |three |'; my @record = map ( whitespace($_), (split /\|/,$_) ); sub whitespace { my $string = shift; $string =~ s/^\s+|\s+$//g; return $string; } but ...
Paul Kraus
Apr 20, 2005 at 1:27 pm
Apr 21, 2005 at 7:36 am -
Dear fellow PERL coders..., What is the "&& do" part of the code doing, i.e. I am looking to understand the syntax, the example was found in perl beginners archive, from some else's post... Thanks, ...
David Gilden
Apr 18, 2005 at 6:48 am
Apr 20, 2005 at 9:09 am -
Hi all I am having trouble getting a subprocedure to work using parameter data passed with shift Here is the calling routine. It's a snippet. All the modules are called properly sub mainmenu { my ...
Hawkes, Mick I
Apr 18, 2005 at 2:29 am
Apr 18, 2005 at 7:42 am -
Hallo, all! I have a function which prints array: sub print_array { my $array_ref = shift; for(@$array_ref){ print "$_\n"; } } And I have a big array, for example named @array. I want to print @array ...
Vladimir D Belousov
Apr 7, 2005 at 12:54 pm
Apr 8, 2005 at 2:34 pm -
I need to combine directories as follows: Source directory structure: DirA SubDirAA More directories SubDirAB More directories SubDirAC More directories DirB SubDirAA More directories SubDirAB More ...
Debbie Cooper
Apr 6, 2005 at 6:43 pm
Apr 7, 2005 at 3:09 pm -
If I use the auto-increment feature for a couple of normalized relations, how do I insert into them? Specifically, when I insert into a relation with the autoincrement feature on the primary key, how ...
Siegfried Heintze
Apr 11, 2005 at 11:18 pm
May 6, 2005 at 11:32 am -
Hi all, Is it possible to use GetOpt::Long (or something similar) in a subroutine using @_ instead of in the standard way (using @ARGV)? I want to have the following scenario, but use GetOpt in a ...
Olivier, Wim W
Apr 20, 2005 at 7:54 am
Apr 22, 2005 at 1:55 pm -
I am trying to convert a unix script to perl. The script takes 2 command line arguments, source and target. I am unable to get the file copy and rename function working properly. Here is what I have ...
Brian Milbrandt
Apr 19, 2005 at 10:22 pm
Apr 21, 2005 at 12:32 am -
In the Perl documentation (perlintro) it says that you can find out the number of elements in an array using the following syntax: print $myvar[$#mmyvar]; I am running into a problem when I try to ...
Aaron C. de Bruyn
Apr 18, 2005 at 7:19 am
Apr 18, 2005 at 3:00 pm -
Hi All The code gives strange error $subject = I get some value from the function if ($subject eq '' || !defined $subject) { Some operation } Operation `eq': no method found, left argument in ...
Anish Kumar K
Apr 13, 2005 at 4:39 am
Apr 14, 2005 at 11:20 pm -
Are these two statements the same? my (@array, @array1) = ( ); my @array = my @array1 = ( ); Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams
Dbsmith
Apr 5, 2005 at 1:33 pm
Apr 5, 2005 at 11:01 pm -
Hi :) Ive been working all afternoon trying to get what seems like a fairly simple outcome with split, but depite trying again & again i can't get things going. I would very much appreciate any ...
Brett Williams
Apr 1, 2005 at 9:46 am
Apr 2, 2005 at 1:36 am -
Hi, I need to create some customized pdf reports and was wondering if there are any perl modules out there to help. I already have my perl script getting data from the db and creating a csv file. I ...
Radhika
Apr 28, 2005 at 7:42 pm
May 2, 2005 at 3:22 pm -
Hi, i have a requirement, as in based on one command line option, the rest of the arguments change for the same script. eg: script could be called in either of the ways script1 -option1 -option2 ...
Lohit
Apr 29, 2005 at 5:39 am
Apr 29, 2005 at 10:00 am -
Hi everyone, Here is an example from the perlrun perldoc page: perl -ane 'print pop(@F), "\n";' is equivalent to while(< ) { @F = split(' '); print pop(@F), "\n"; } My question is, can I get Perl to ...
Larsen, Errin M HMMA/IT
Apr 25, 2005 at 6:45 pm
Apr 25, 2005 at 7:49 pm -
Hi all. I have a large script ( 6000 lines ) that I'd like to break into logical units. Is there a way I can tell perl to 'append' a list of files into 1 script so that I can call subs from any of ...
Daniel Kasak
Apr 21, 2005 at 5:39 am
Apr 22, 2005 at 2:10 am -
Guys Thanks to all the useful suggestions, especially to Charles for the code review, I will implement your suggestions throughout my code. But back to the original question. I need to put a lot of ...
Hawkes, Mick I
Apr 19, 2005 at 12:16 am
Apr 20, 2005 at 1:34 am -
Hi List, How do i convert a string variable returned by some XPath API into a number so that I can compare it or loop using this number. I am reading one number from XML and I want to use it for ...
Manish Sapariya
Apr 6, 2005 at 2:18 pm
Apr 7, 2005 at 7:20 am -
Hello everyone, I am new to Perl and am trying to code a simple program that will read a list of files from a text file then present the user with some options regarding those files (hope that makes ...
Five421
Apr 4, 2005 at 10:42 am
Apr 4, 2005 at 1:31 pm -
Hi All, I have just joined this group two days back. So 'Hello' to every one out there. I am new to Perl and I want to do some project in it. I have some very basic queries in Perl, so thought of ...
Rajat Dudeja
Apr 18, 2005 at 2:02 pm
Apr 28, 2005 at 9:10 am -
Hello everyone, This is the first time I was able to get a complex regex actually working as I expect, but I wanted someone to comment on it, in case I am overlooking something very major. I am ...
Peter Rabbitson
Apr 27, 2005 at 5:16 pm
Apr 27, 2005 at 6:01 pm -
Hi List, I have default MIME module installed and I have installed the lated version in one of my own directory. Any my perl code needs the latest version which I have installed in local_perl_lib. ...
Manish Sapariya
Apr 14, 2005 at 12:58 pm
Apr 26, 2005 at 4:15 am -
I'm trying to write a perl one-liner that will edit an iCalendar format file to remove To Do items. The file contains several thousand lines, and I need to remove several multi-line blocks. The ...
Kevin Horton
Apr 25, 2005 at 11:05 am
Apr 26, 2005 at 1:07 am -
Hi everybody! I'm very newbie programmer of Perl and I can't make a little program with a small number of arguments with this Perl module, Getopt::Mixed. I like that somebody will can make a simple ...
Carlos Mantero
Apr 23, 2005 at 12:09 pm
Apr 25, 2005 at 2:01 pm -
Hi List, Can anybody tell me difference among all of the following sub declaration. 1. sub abc {} 2. sub xyz() {} # Please not round brackets, When I had this definition, I got following error. ...
Manish Sapariya
Apr 7, 2005 at 12:48 pm
Apr 19, 2005 at 8:18 pm -
I need to print the text between two words that are in different lines.
Lio lop
Apr 19, 2005 at 12:14 pm
Apr 19, 2005 at 2:36 pm -
Hello, I am trying to pass an array by reference since it could become very large. The function should take the array and print it out but only 10 elements per line. #!/usr/bin/perl -w use strict; ...
Michael Gale
Apr 17, 2005 at 6:13 am
Apr 18, 2005 at 9:40 am -
I have a script that is reading input from ARGV. The script is being passed a file name as follows: datefile.pl c:\program files\IBM\SQLLIB\DB2\db2diag.log The problem I am running into is that the ...
Bret Goodfellow
Apr 13, 2005 at 10:12 pm
Apr 14, 2005 at 11:37 pm -
I want to write a perl script like "gnu less". My perl script accepts input on STDIN or filename(s) as arguments. If both are missing it should print the error message. How do I do this ? The ...
Ramprasad A Padmanabhan
Apr 13, 2005 at 6:48 am
Apr 13, 2005 at 9:05 pm -
Hello, I am trying to create case statement, and I am not sure I am on the right track, any comments? Thanks, Dave Gilden SWITCH: { ## yacht form if ($whichForm eq "123") { $subject = "123 Form"; ...
David Gilden
Apr 12, 2005 at 3:24 pm
Apr 12, 2005 at 5:15 pm -
Hi there, i have written a socket c++ server, which listens for clients and understands some commands. here the structs of the server commands: enum command { SET_PRIO, CLEAR, SEND_STRING, ...
News-funsi
Apr 5, 2005 at 10:16 pm
Apr 7, 2005 at 6:40 pm -
I believe that I may have asked this question before and cannot find the answer that I had gotten, So I will ask again. I have upgraded DBI to version 1.48 and I am now having issues and errors with ...
Christopher L Hood
Apr 6, 2005 at 12:33 pm
Apr 7, 2005 at 12:42 pm -
Hi All, Do we have Perl script that can edit & add to the Windows (XP, 2000) path.? Thanks Amr
Amr
Apr 27, 2005 at 12:31 pm
Apr 27, 2005 at 4:20 pm -
Hi all I'm trying to write a basic class that will contain some configuration details, unfortunately it bombs out and doesn't do anything. ################### start of class ...
Graeme McLaren
Apr 24, 2005 at 5:01 pm
Apr 25, 2005 at 9:38 am -
Hello everyone, Very simple: I need to generate a file and upload it to ftp. Currently I am wrapping the file together, writing it out to a temp file on disk, calling $ftp- put($tmp_file) on it, and ...
Peter Rabbitson
Apr 21, 2005 at 2:42 pm
Apr 21, 2005 at 6:20 pm -
The following regex is failing strangely: my @tables = $content =~ m#\[table\](.*?)\[/table\]#g; foreach (@tables) { my $table = $_; if ($content =~ m#$table#) {print "yes old table is there!\n";} } ...
Angie ahl
Apr 19, 2005 at 6:55 pm
Apr 20, 2005 at 12:19 pm -
Hi All, I am new to the list and need some quick help. I have been kicking around with vi and sed for years but never took the time to learn Perl. Now I need to use Perl and could really use a ...
Keith Worthington
Apr 18, 2005 at 6:13 pm
Apr 20, 2005 at 10:13 am -
I am new to PERL but how would I write a script that would read in a file and output the last 10 lines? I guess it is sort of like the UNIX command of Tail. Any ideas, much appreciated. DA
Dave Adams
Apr 19, 2005 at 4:49 pm
Apr 19, 2005 at 8:32 pm -
Hi All, Many thanks to Jay for his examples I have now written a perl script that is munging a text file. Eventually I will move the perl code into a function inside a postgresql database. I am ...
Keith Worthington
Apr 19, 2005 at 12:58 pm
Apr 19, 2005 at 5:47 pm
167 users for April 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)