Search Discussions
-
i have a data file that looks something like this : ( it is already sorted by date ) 12/22/02 abc 123 456 789 12/23/02 def 246 812 98234 12/24/02 ank 987 23456 8762 12/27/02 abc 987 345 65434 ...
Joseph Paish
Feb 20, 2003 at 6:43 pm
Mar 10, 2003 at 11:35 am -
Hi Guys, I have an array in which each element is a line commandline data. It looks something like this - @Array contains lines: post1: -r cat-100@dom.sub.com -x cat-100 -h post1 post2: -x tel -h ...
Deb
Feb 28, 2003 at 9:05 pm
Mar 4, 2003 at 5:16 pm -
I am trying to use HTML::TokeParser From the cpan page for this I used this example : while (my $token = $p- get_tag("a")) { my $url = $token- [1]{href} || "-"; my $text = $p- get_trimmed_text("/a"); ...
Dan Muey
Feb 11, 2003 at 7:01 pm
Apr 29, 2003 at 9:41 pm -
Hello guys, I have just installed PERL/Apache and mod_perl, but this last one gave me an error when I try to compile. Could anyone help me? Thi is the error: bash-2.05# make && make test cd ...
Pj
Feb 18, 2003 at 4:20 pm
Feb 21, 2003 at 4:14 pm -
I hadn't actually thought of it that way, but it's remarkably well explained. Well done. Ah, now that's not quite right. The 'do' block will create a local copy of $_, initialised to 'undef'. The end ...
Rob Dixon
Feb 18, 2003 at 8:08 pm
Feb 20, 2003 at 5:10 pm -
From perlre: ============ Warning on \1 vs $1 Some people get too used to writing things like: $pattern =~ s/(\W)/\\\1/g; This is grandfathered for the RHS of a substitute to avoid shocking the sed ...
Paul
Feb 20, 2003 at 9:00 pm
Feb 26, 2003 at 8:31 pm -
Hello All, Is the only way to copy a file from one directory to another by using the copy module...? Would anyone have a snipet of code copying a file from one dir to another... Any assistance would ...
Michael Pastore
Feb 14, 2003 at 3:18 pm
Feb 15, 2003 at 7:39 pm -
I guess my main question would boil down to :: How can I use variables that get declared in a lib file in a script that uses -w and use strict; ? A more complex example of what I've tried and what ...
Dan Muey
Feb 17, 2003 at 5:41 pm
Feb 18, 2003 at 11:26 pm -
I would like to pack some modules with my program. I've learned about use lib qw(/mydirto/mylibrary/); for simple modules. Now I have an module that has several directories (Crypt::OpenPGP). The ...
Patricia Hinman
Feb 13, 2003 at 8:37 pm
Feb 17, 2003 at 3:16 am -
15
calling sub
Can someone tell me why my call to build_db() works but when I call alert() it will not work as it calls alert but will not enter the while loop I my opening the file with #!/usr/bin/perl $filein = ...Benjamin Jeeves
Feb 9, 2003 at 4:33 pm
Feb 10, 2003 at 3:42 pm -
Dear folks, I have 2 files each contain a column of data, I want to combine them into 1 file with the 2 columns next to each other, eg: file_1: 12 13 14 3 file_2: 3 45 34 56 desired output: 12 3 13 ...
Aimal Pashtoonmal
Feb 17, 2003 at 12:05 pm
Feb 18, 2003 at 8:17 pm -
Hello I'm just minutes away from bashing the famous 'head against the monitor'. Here's my problem: I have an array, let's name it @input. Another array, @blacklist, contains lines which should be ...
Philipp Gruemmer
Feb 21, 2003 at 11:26 am
Mar 4, 2003 at 5:58 am -
Again, from perlsub.... Under When to Still Use local() .... 3. You want to temporarily change just one element of an array or hash. You can "local"ize just one element of an aggregate. Usually this ...
Paul
Feb 18, 2003 at 6:02 pm
Feb 20, 2003 at 3:24 pm -
this is a script that systematically pings every host on the network, and writes the output to the screen. If the -n arg is specified, it will also write to a disk. What's wrong with the syntax, ...
Mark VanMiddlesworth
Feb 12, 2003 at 12:23 am
Feb 14, 2003 at 6:14 pm -
Hi guys, How can I get around this "warning" Use of uninitialized value in pattern match (m//) at test.pl line 85. For some reason I always get driveNum=2. I am using warinig and strict in my code.. ...
Chad kellerman
Feb 1, 2003 at 5:46 pm
Feb 3, 2003 at 4:45 pm -
I'm making a script that enables you to download content off a server as it is, so the data is as up to date as it could ever possibly be. I have this: $number = 0; $path = ...
Dan
Feb 21, 2003 at 11:16 pm
Feb 27, 2003 at 3:40 pm -
Is there a way to access the 'foreach' variable from a subprocedure called from inside the loop whose variable you want to access? Hooboy, even I don't understand that question! ;-) An example is ...
Lance
Feb 11, 2003 at 5:45 pm
Feb 14, 2003 at 5:31 am -
Hi, I want to send an e-mail from perl script.... i have following script...but i am getting following error..... does anybody have any idea, why it is failing ? ============== following is error ...
Madhu Reddy
Feb 6, 2003 at 1:40 am
Feb 6, 2003 at 10:05 pm -
Ok, so this is probably a stupid question, but I'm a newbie, and therefore stupid. :-] It'll take you about 5 seconds to figure this one out. I have an assignment that requires me to find words in a ...
Gary Merrick
Feb 20, 2003 at 2:46 am
Feb 20, 2003 at 5:13 pm -
I am writing a script that will read from a file named myfiles not stdin and print the lines containing the following words "everywhere" or 'nowhere. #!/usr/bin/perl #use strict while (< ) { chomp; ...
Brady jacksan
Feb 18, 2003 at 4:50 am
Feb 18, 2003 at 5:06 pm -
Hi I have used NEt::telnet for remote login and automatic login to oen freebsd , it's ok and i could login ,but how can i telnet as root? i mean how can i do "su - root" with net::telnet ? or is ...
Blue
Feb 16, 2003 at 12:35 pm
Feb 18, 2003 at 2:55 pm -
hi all, if i want to make a standalone executable of my perl program how do i do that with perlcc ??? or any other way to generate machinecoded executable? kindly enlighten me -- regards, KM
Km
Feb 13, 2003 at 10:00 pm
Feb 18, 2003 at 10:33 am -
I just had a friend explain in some little detail about linked lists in C using structures. How would such a thing be done with Perl? This may help me understand C's version a little better. If you ...
JC(oesd)
Feb 16, 2003 at 6:29 pm
Feb 17, 2003 at 3:49 pm -
Hi How would I go about display a message say like "hello and welcome" in a konsole from a perl scripts if some thing meets a pattern that my perl srcipt is look for.
Benjamin Jeeves
Feb 16, 2003 at 11:12 am
Feb 16, 2003 at 3:10 pm -
Hi, I am trying to write a script that reads names fron standard input and matches it to a key in a given table and prints out the name and key Enter a first name or " <ctrl -z ", to exit chomp { ...
Dakenah johnson
Feb 15, 2003 at 6:04 pm
Feb 16, 2003 at 1:29 am -
The DBI module is recommended for database access. You'll need the DBD::mysql driver module to go with it. You can retreive the data using DBI, and write scripts to do statistical analysis. But since ...
Reavey
Feb 10, 2003 at 12:08 pm
Feb 11, 2003 at 6:13 pm -
This just tests whether the arrays have the same number of elements. It does not test the contents. For a "brute force" approach, you could use the following test: if ("@Af1" eq "@Af2") { print ...
Bob Showalter
Feb 10, 2003 at 10:23 pm
Feb 11, 2003 at 1:08 am -
Hi I am facing a problem .In one script ,it asks the user to enter a filename ,where the whole path can also be entered.For Example : Enter the FILENAME : /usr/bin/xyz.sql My question is how to ...
Debraj bhattacharyya
Feb 5, 2003 at 5:43 am
Feb 6, 2003 at 2:01 pm -
Hello there, I am a newby trying to learn pearl. I wrote my first little script, and I would love to se where I could have done things better (in a more proffesional way). Feedback would be ...
Johann Snyman
Feb 26, 2003 at 5:44 pm
Mar 5, 2003 at 3:44 am -
Greetings! I'm trying to do some Perl for a non-profit organization. The computer administrator doesn't know very much about Perl or about the server. If I were to ask him what Perl modules were ...
Rob Richardson
Feb 24, 2003 at 7:12 pm
Mar 3, 2003 at 10:09 pm -
I'm tryin got find the quickest way to creat a file and write to it. I know I can do open.... print FILEHANDLE $stuff; close... and perhaps ad some flocks for good measure what I'm wondering is if ...
Dan Muey
Feb 10, 2003 at 6:33 pm
Feb 11, 2003 at 5:31 pm -
Basic question on using '&&' vs 'and'. I see that '&&' has higher precedence than 'and', but why does print 1 && 1 && 0; print "\n"; print 1 and 1 and 0; print "\n"; return 1 I would have expected ...
Jeff Westman
Feb 25, 2003 at 8:22 pm
Mar 21, 2003 at 6:28 pm -
Hello, Does anyone know of a quick/easy/fast way to to get the domain out of a url? For instance if I do : $url = $cgi- url(); I'll get, say http://joe.mama.com/so/isyour.cgi?mother I know I can use ...
Dan Muey
Feb 17, 2003 at 5:41 pm
Mar 3, 2003 at 6:27 pm -
Hi, I have a project at work that I need help on. I have couple of questions regarding to my "file manipulation program" and was wondering if anyone could help me. Thanks a lot. I really appreicate ...
Poon, Kelvin (Infomart)
Feb 24, 2003 at 6:07 pm
Feb 25, 2003 at 12:50 pm -
Hi, Any body can help me to get rid of this. One more problem shoot up. In some of the systems when the perl is exuceted, I am getting error. Please guide me how to rectify the error and what will be ...
N. Ganesh Babu
Feb 21, 2003 at 5:00 am
Feb 23, 2003 at 7:21 pm -
Lo all, I'm doing something *really* stupid... Please kick me... while (< ) { if ($_ =~ /LinkArea="MoreHeadlines" /) { ($URL) = $_ =~ /href="($.)"/; print "$URL\n"; } } I have a URL... <a ...
Chris Knipe
Feb 23, 2003 at 1:13 pm
Feb 23, 2003 at 3:47 pm -
Hello list, What is the best way to get the headers of an email into a hash and also the text part of the body into an array or variable? Here's what I have so far :: Assuming I have the entire email ...
Dan Muey
Feb 21, 2003 at 5:06 pm
Feb 21, 2003 at 9:20 pm -
Lo all, I got a little problem with a CSV import... It should be rather straight forward to people who do this often.. so I'm hoping for some help... I have a MS Excel exported CSV text file, with , ...
Chris Knipe
Feb 20, 2003 at 8:33 pm
Feb 20, 2003 at 9:14 pm -
Hello list, Does anyone know how to set an environment variable in Perl and then have that variable persist after the Perl script has ended? I'm working in Unix. Thanks
Steve Main
Feb 20, 2003 at 4:42 pm
Feb 20, 2003 at 5:45 pm -
Ok here go's , I'm just starting to Learn Perl and it's a very slow process. I have this script the calculates the sum a bunch of numbers and prints the final number to file, but my problem is I ...
James Parsons
Feb 18, 2003 at 7:46 pm
Feb 19, 2003 at 7:33 pm -
Hi All I have no idea of CYGWIN except only that almost all unix commands can be run on windows . I want to know if the SAME program running on unix systems can be run on windows without any change ( ...
Pradeep Goel
Feb 17, 2003 at 1:34 pm
Feb 17, 2003 at 6:47 pm -
Hi How can y give s sbstition order of the kind @string=~s/nonalfanum//g; in these two cases? 1-wich will search and replace with "" (empty char) all nunnumeric or nonalphabetic chars? 2-wich will ...
Andre
Feb 14, 2003 at 2:14 pm
Feb 16, 2003 at 1:38 am -
7
h-cat?
I'm interested in doing the equivalent of a horizontal "cat" on a bunch of files. That is, instead of listing them one after another, I'd like them "cat"ted next to each other horizontally (tab ...Bryan Harris
Feb 13, 2003 at 6:49 pm
Feb 14, 2003 at 11:55 am -
To all you perl gurus out there... I've got this file named schedule.pl...in the interest of troubleshooting my problem, I've thinned my script to the following code... #!/usr/bin/perl print "<HTML ...
Sam Mauntz
Feb 3, 2003 at 7:13 pm
Feb 12, 2003 at 8:13 am -
I have to find duplicate customers in are customer file (around 60,000 customers). The file has been exported into a pipe delimited file. ...
Paul Kraus
Feb 11, 2003 at 3:09 pm
Feb 11, 2003 at 3:51 pm -
Hi All, I swear I've called subroutines this way before, but I can't find any examples. In this case, I'm looking to build some time/date functions. Regardless of what the actual code is supposed to ...
Peter_farrar
Feb 7, 2003 at 8:23 pm
Feb 10, 2003 at 6:55 pm -
I'm trying to read the last line on a Plain text File. But when I use: open (DATOS, "$bd") || die "Error: no se puede abrir el archivo"; while ATOS ){ $registro = <DATOS ; } I don't get any value on ...
Ramón Chávez
Feb 7, 2003 at 4:49 pm
Feb 8, 2003 at 6:38 am -
by using this code i get the right answer, but i want to store the pattern in the variable and use it, for pattern, it fails. what is the problem. is it related to priority of operator. open(IH, ...
Kasi ramanathen
Feb 6, 2003 at 4:11 am
Feb 8, 2003 at 5:37 am -
I was wondering if anyone had any ideas on how to parse a datafile with fixed length records but no carriage returns. All records are on one line. There are 3 fields per record the first is 10 ...
Christopher M Burger
Feb 4, 2003 at 3:43 pm
Feb 4, 2003 at 6:21 pm
279 users for February 2003
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)