Search Discussions
-
Hi All~ I'm using the glob function to grab all the files in a given directory and then using crontab to check it every 5 minutes. Once I have the files I'm using the diamond operator to read every ...
Brian Volk
Dec 12, 2005 at 5:32 pm
Dec 15, 2005 at 1:04 pm -
Hi All, I am currently automating some UI tests with the help of WWW::Mechanize module. I need to save images on a webpage. I tried using the find_image function to get the reference of the image ( ...
Dhanashri Bhate
Dec 20, 2005 at 11:26 am
Apr 8, 2006 at 6:03 pm -
hi,lists, I have a file which is so large,which looking as: 61.156.49.18:28360 61.183.148.130:27433 222.90.207.251:25700 202.117.64.161:25054 218.58.59.73:24866 221.233.24.9:22507 222.187.124.4:21016 ...
Jennifer Garner
Dec 8, 2005 at 8:37 am
Dec 9, 2005 at 3:48 am -
I want to know how many new line chars there are in all files in a directory (and it's subdirectories). What's the best way? Thanks!
The Ghost
Dec 2, 2005 at 3:25 pm
Dec 3, 2005 at 3:17 pm -
hello everyone, I have a simple question. I have a string that looks like this : <counter id="183268" since="SDOPERFV16" aggr="Sum" name="pcmTcuFaultOutOfService"/ and I would like to store the ...
Alexandre Checinski
Dec 12, 2005 at 10:03 am
Dec 13, 2005 at 1:40 pm -
Hi all, I have a module which does nothing but include a bunch of use statements (Shawn Corey, I think you taught me how to do that).It looks like this: ...
Vmalik
Dec 7, 2005 at 3:26 pm
Dec 8, 2005 at 7:50 pm -
Hello everyone, I'm trying to define a constant hash and have the following: use constant STOPWORDS = map { lc $_ , 1 } qw(a about above across adj after); I do not get a hash from this. This does ...
Kevin Old
Dec 16, 2005 at 8:26 pm
Dec 20, 2005 at 12:49 am -
Hi,lists, I have a small script,when it run,it generate much more lines and put them into a file. The code for printing I writed: map { print RESULT $_,":",$ips{$_},"\n" } sort { $ips{$b} <= $ips{$a} ...
Jennifer Garner
Dec 6, 2005 at 11:06 am
Dec 6, 2005 at 6:10 pm -
Hi all- I'm attempting to loop thru an input file, executing a SELECT query with the value from each line. The script works for the first iteration, and then gives these error messages: ...
John
Dec 13, 2005 at 7:28 am
Dec 16, 2005 at 9:10 am -
Hi List, I want to get that value of *-i* set in below line. *Options=-a"hello" -mt -ml3 -i"dir1\dir2" -k -p -i"dir3\dir4" -m* What is the best way to get the value of *-i* values into one array. For ...
Umesh T G
Dec 15, 2005 at 12:01 pm
Dec 16, 2005 at 6:23 am -
I just had a discussion about variables going out of scope (for memory considerations) The idea was presented that variables go out of scope as soon they're last referenced in a block, I always ...
JupiterHost.Net
Dec 6, 2005 at 5:07 pm
Dec 6, 2005 at 10:44 pm -
What's the rationale for hardwiring the Perl executable pathname into the Perl interpreter? It is some oddity to guarantee Perl can find its library via a relative path? Is it a safety thing? Adriano.
Adriano Ferreira
Dec 2, 2005 at 1:19 pm
Dec 3, 2005 at 4:09 pm -
Howdy, For an Acme module I'm trying to make an alternative to print, but can;t get goto to work with print: I'd like this: perl -mstrict -wle 'sub x {goto &print} x("hi");' to work like this: perl ...
JupiterHost.Net
Dec 18, 2005 at 1:43 am
Dec 18, 2005 at 11:25 pm -
Hi, I'm trying to change the string in .bash_profile: PATH=$PATH:/home/bin to PATH=$PATH/home/bin:/usr/local/httpd/bin I'm using the following: perl -pi~ -e ...
Mário Gamito
Dec 14, 2005 at 12:18 am
Dec 14, 2005 at 2:33 am -
Hello dears, I want to count words in the following file: ------------------------------ ID- some number TI- some text BB AB- some text A BB AU- some text ID- some number TI- some GGG text AB- some ...
Andrej Kastrin
Dec 12, 2005 at 10:00 am
Dec 12, 2005 at 10:00 pm -
Hi, Iam using <STDIN to accept user input but the script just hangs at that point. I type in the value & program is just stuck at that point. i know its got to do with buffer flushing. when iam using ...
Poonam Pahil
Dec 29, 2005 at 10:22 am
Dec 30, 2005 at 8:57 am -
Hi, I have created a program that monitors a text file which sits on another computer from the network, and when it sees a change in that file, it opens it, and gets the newly added lines. I have ...
Octavian Rasnita
Dec 13, 2005 at 8:15 pm
Dec 13, 2005 at 11:57 pm -
I'm trying to move the configuration variables out of three perl scripts and put them in a config file. Fine, no problem so far. The way this works is an email message with a given subject is ...
M. Lewis
Dec 2, 2005 at 5:28 am
Dec 4, 2005 at 5:55 am -
Hi, I want to store column data of xls file in array. E.g. $array[0]=1st column of xls sheet. $array[1]=2st column of xls sheet. $array[2]=3st column of xls sheet. ... etc.... Can anybody help me... ...
Pant, Hridyesh
Dec 1, 2005 at 4:22 am
Dec 2, 2005 at 6:00 am -
Is there a constant or a definition for a maximum number in perl? And the same question for a minimum value? Alon
Alon Marx
Dec 27, 2005 at 11:58 am
Dec 27, 2005 at 1:50 pm -
How can I check inside a script to see if a file has already been opened early and is still open? Does the perl interpreter keep track of that kind of stuff. It seems error prone to set a variable to ...
Reader
Dec 23, 2005 at 10:05 pm
Dec 27, 2005 at 2:40 am -
Hi There, I have some problems undestanding how to parse a hash to module of my own. I have this hash %person : $person{$Name}{Name} = "xxx"; $person{$Name}{Id} = zzzz; @( $person{$Name} {Friends} ) ...
Ditlev, Unix Consulting
Dec 18, 2005 at 3:47 pm
Dec 23, 2005 at 3:18 pm -
I have tried this question in a couple of other places but the answers are far above my current level of understanding of oop - which is the level of very interested newbie - real newbie. So here ...
Ken Farmer
Dec 7, 2005 at 3:36 am
Dec 8, 2005 at 5:22 am -
Hello dears, I have a file in row data format, which stores different terms (e.g. genes) and look like: ------------ ABH HD HDD etc. ------------ Then I have second file which looks like: ...
Andrej Kastrin
Dec 7, 2005 at 5:00 pm
Dec 7, 2005 at 8:29 pm -
Hi,lists, Seeing this code please: our %sym = ( name = 'flower', age = 23, ); print ${*{$::{sym}}{HASH}}{name}; The result of printing is : flower. How to analyse the last sentence of that ...
Jennifer Garner
Dec 5, 2005 at 1:52 pm
Dec 7, 2005 at 1:16 am -
Hi, I have tried to install DBD::mysql under Linux manually and also using cpan, but the "make test" command gives the error saying that it can't connect to the server using the socket ...
Octavian Rasnita
Dec 3, 2005 at 6:52 pm
Dec 5, 2005 at 11:01 am -
Hi, I am trying to move some file form one folder to other . I am able to move the file if i do it from the dos prompt but it gives me access denied when i try it using Perl. It seem to me a problem ...
Manoj Thakkar, Noida
Dec 1, 2005 at 5:09 am
Dec 3, 2005 at 7:27 pm -
How can I make this do what I mean? #!/usr/bin/perl use warnings; use strict; my $var = 'world'; undef $/; my $data = <DATA ; print $data; #oops __DATA__ hello $var
Andrew Brosnan
Dec 2, 2005 at 1:04 am
Dec 2, 2005 at 3:18 am -
hi,lists, I have two perl scripts as following: a.pl: ---- #!/usr/bin/perl use strict; my @logs = glob "~/logs/rcptstat/da2005_12_28/da.127.0.0.1.*"; foreach my $log (@logs) { open (HD,$log) or die ...
Jeff Pang
Dec 28, 2005 at 12:38 pm
Dec 29, 2005 at 3:11 pm -
Hi, I have writtena simple file find perl script but i am getting the following problem "Can't cd to (C:/) System Volume Information: Permission denied" here is my code use warnings; use File::find; ...
Manoj Thakkar, Noida
Dec 26, 2005 at 5:34 am
Dec 28, 2005 at 3:16 am -
Greetings, A little background first: I have a bunch of PERL scripts that I use to automate tasks performed by CAM software. I have one HP-UX 10.20 server, a Linux (Red Hat ES 3.0) server, and ...
Zielfelder, Robert
Dec 21, 2005 at 1:15 pm
Dec 23, 2005 at 10:59 am -
Iam using the system command to call an application(windows) that sets up the enviorment. as per my knowledge, a subshell would be created & hence the modified enviorment would be lost once system ...
Poonam Pahil
Dec 21, 2005 at 9:34 am
Dec 21, 2005 at 12:31 pm -
Hi, I am new to Perl. Can some one please help me by giving some tips that I need to look into during migration of an older version of Perl script (CGI). What is the stable version of Perl at this ...
Venkat Kumar
Dec 15, 2005 at 6:53 pm
Dec 16, 2005 at 1:50 am -
Hi list. I have two dates in format YYYY-MM-DD for example ( 2005-09-01), but I need to pass them to timestamp format, how do I do it ???. I tried with time, localtime, gmtime, but I can´t. Thanks. ...
Rafael Morales
Dec 2, 2005 at 7:23 pm
Dec 2, 2005 at 8:49 pm -
Hello, In the Script below the line: last if ($num = 35) is giving me this error: Use of uninitialized value in int How do I avoid this error? my @files contains: Gambia001.tiff through ...
David Gilden
Dec 30, 2005 at 8:04 pm
Dec 30, 2005 at 9:03 pm -
Hi all, I have a 15 thousand directories - each of them contain say 10 files (all *.gzip) out of this 10 *.gz files - I want to check whether a file named foo.gz contain any content or not - since my ...
S Khadar
Dec 30, 2005 at 12:14 pm
Dec 30, 2005 at 8:11 pm -
I have a log that I am parsing and I can get the login and logout time string parsed out. It looks like this: 13:50:01 # this is the when the user logged in 14:14:35 # this is when the user logged ...
Robert
Dec 29, 2005 at 2:19 am
Dec 29, 2005 at 4:16 pm -
Hi List, I need to put each letter from a string to an array. I am doing it this way and it works. I wanna know if there is any other better way to do this / a built-in function. #! /usr/bin/perl ...
Umesh T G
Dec 28, 2005 at 5:50 pm
Dec 29, 2005 at 9:35 am -
All, Here is my script and it is outputting "file is not present" when it should be outputting "temp file is good and $MHfile is there\n"; Am I missing something since I am running this is a Windows ...
Dbsmith
Dec 28, 2005 at 10:01 pm
Dec 29, 2005 at 12:01 am -
Hello, Is there any way to auto-size cells when you are generating a CSV file using Perl (without using any additional modules)? Thanks. Brian Bernard Senior, Direct Advanced Response Team Premier ...
Brian Bernard
Dec 24, 2005 at 3:00 pm
Dec 24, 2005 at 6:18 pm -
4
CSV Help
Hello, I am new to this list. Can someone please let me know if the built-in functionality of Perl can print OUT to CSV but control what the CSV looks like? Actually, I know that I can output to CSV ...Brian Bernard
Dec 22, 2005 at 6:28 am
Dec 22, 2005 at 4:12 pm -
Hello all, I am sure many before me asked this question. Could not locate it in archive. So here I am. I am new to Perl but not to programming. I have experience with software development using Java ...
Just Another
Dec 17, 2005 at 2:41 am
Dec 21, 2005 at 3:59 pm -
Greetings, I looked for documentation on 'use constant' but it has eluded it me..... my $path = `pwd`; use constant UPLOAD_DIR = "/home/sites/site123/web/private/_data/"; I want to get the Document ...
David Gilden
Dec 20, 2005 at 12:34 am
Dec 20, 2005 at 4:06 pm -
Hi all So, I have 4 fields file; fields are tab separated: 00001 BRCA3 BRCA33|BRCA55 symbol 998 00002 ABCB1 DASH|BASG|AVGA4 symbol 7583 In first step I split each row and store it in array; e.g.: ...
Andrej Kastrin
Dec 19, 2005 at 9:42 am
Dec 19, 2005 at 1:06 pm -
I have broken out my DB connection calls into a small module. It isn't anything fancy so it is basically: package DBConn use strict; use warnings; sub { # connection info for db1 } sub { # connection ...
Robert
Dec 16, 2005 at 3:09 am
Dec 17, 2005 at 5:15 pm -
Hi All, I tried to remove white space and newlines from HTML pages using HTML::Strip::Whitespace module. It removes the white space, but not NEW LINES. Here is my script: ==================== use ...
Durai raj
Dec 13, 2005 at 4:59 am
Dec 13, 2005 at 11:56 am -
4
$i++
Hi, Can anyone explain why: $i++; is faster than: $i = 1; and even more faster than: $i += 1; Thanks. TeddyOctavian Rasnita
Dec 11, 2005 at 5:27 pm
Dec 11, 2005 at 8:42 pm -
Hello, I would like to skip the first ten lines of output from tail, then print any new records matching my array, but I seem to be stuck, below will run but nothing prints: tail /var/log/messages is ...
Ron McKeever
Dec 5, 2005 at 4:50 pm
Dec 5, 2005 at 10:06 pm -
Hi Everybody, I have a script where I need to replace 45 in the beginning, with nothing in a variable.... It looks like this: #!/usr/bin/perl $modtager = "45247"; $modtager =~s/45//; Then $modtager ...
Mads N. Vestergaard
Dec 2, 2005 at 9:23 am
Dec 5, 2005 at 2:09 pm -
Hi,lists, I usually meet some problems of closure when do development under mod_perl. Can anyone tell me that what use of a closure in perl?thanks.
Jennifer Garner
Dec 2, 2005 at 3:44 pm
Dec 3, 2005 at 3:55 am
151 users for December 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)