Search Discussions
-
hi, how do i reset a foreach loop so that it starts at the top each time? a sample of my code looks like: foreach $zrec (@file) # file with agent and city { chomp($zrec); foreach $zkey (@template) # ...
James Lum
Dec 20, 2001 at 9:06 pm
Dec 21, 2001 at 8:21 pm -
Hi Guys I am running into an issue trying to determine whether a file exists when the name varies. The file has a name that always begins with "vista90n" and so I tried the following code ... if (-e ...
Khan, Sajid
Dec 18, 2001 at 3:39 pm
Dec 27, 2001 at 12:42 am -
Is there a document in perldoc that tells the best way to get the last line of a file? Below is my usual code for reading a file. #!/usr/bin/perl -w $file = qq(/some/file/); open FILE, "$file" or die ...
James Kelty
Dec 18, 2001 at 6:25 pm
Dec 19, 2001 at 4:18 am -
Hi I need to add a word to the end of a word inside a file. HELP PLEASE for example: I will read a file with these names july tony richard then I want to add the following to the name @minime.com. So ...
Peter Lemus
Dec 31, 2001 at 9:44 pm
Jan 2, 2002 at 12:29 pm -
HI! Studying 'Learning Perl, 3rd edition' I was stopped, suddenly, by C. 8's Exercise 1, using the pattern_test program. the following works fine: #!/usr/bin/perl -w while (< alfred ) { if (/fred/) { ...
Egor Brandt
Dec 19, 2001 at 8:58 pm
Dec 20, 2001 at 7:57 pm -
Hello All, I want to transform a sorted list into a compact list (if this is the correct term). e.g. my list is 9,11,12,13,14,23,25,26,27,50 and want to have something like 9,11-14,23,25-27,50 (to ...
Kredler Stefan
Dec 17, 2001 at 12:19 pm
Dec 18, 2001 at 10:05 am -
I'm curious to know if someone could point me in the right direction to find out how to manipulate the /etc/passwd file and/or the /etc/shadow file. I know about getpwent, getpwnam, getpwuid, but ...
Joshua Colson
Dec 11, 2001 at 8:25 pm
Dec 13, 2001 at 10:44 am -
Hi Folks! Trying to get todays date and month... was able to find this... #snip-start use Time::localtime; $tm = localtime; ($DAY, $MONTH, $YEAR) = ($tm- mday, $tm- mon, $tm- year); #snip-end this ...
Shinagare, Sandeep
Dec 5, 2001 at 4:26 pm
Dec 6, 2001 at 1:28 pm -
To the PERL community, I downloaded the file ActivePerl-5.6.1.630-MSWin32-x86 and installed it on my computer (Windows 98, P3). to test a batch client for BLAST application in molecular biology which ...
FJM
Dec 14, 2001 at 5:43 pm
Feb 18, 2002 at 11:26 am -
Hello people... Happy Holidays... This is my first post. Im a senior high school student and about to graduate this year(lets just hope hehhehe).. Im just wondering if any of you can recommend some ...
Luke
Dec 27, 2001 at 8:57 am
Jan 4, 2002 at 11:10 pm -
hi can anyone tell me how to short this... if($searchstring =~ /A/i or $searchstring =~ /B/i or $searchstring =~ /C/i or $searchstring =~ /D/i or $searchstring =~ /E/i or $searchstring =~ /F/i or ...
Jesus Is Not Dead
Dec 7, 2001 at 9:16 pm
Dec 8, 2001 at 4:13 am -
I have what seems to be a persistent problem with all files that I import from dos into emacs. I have those control M's all over the place. Does anyone know of a perl script to 'clean' these files? ...
Booher Timothy B 1stLt AFRL/MNAC
Dec 5, 2001 at 10:32 pm
Dec 7, 2001 at 8:54 am -
o.k. another regex issue . . . I want a one-liner that can remove everything after a given character: i.e. in this case everything after ! (fortran comment): would this work: perl -npe 's/\!.+$//' my ...
Booher Timothy B 1stLt AFRL/MNAC
Dec 12, 2001 at 7:58 pm
Dec 21, 2001 at 1:11 am -
right now i do w | head -1 and get what's below my signature. I want to clean that up, cutting it after the # of users, so that everything after AND including the third comma is removed from that ...
KeN ClarK
Dec 20, 2001 at 4:03 am
Dec 20, 2001 at 11:09 pm -
Hi, I was just wondering, can I send data through the parallel port using perl? And If yes, how ? With some kind of a module ? And where can I read more about it? Thanks for any help provided :))
Stanislav Zahariev
Dec 20, 2001 at 6:54 am
Dec 20, 2001 at 4:02 pm -
Hi all, Need a little help on summarising 2 different tables into 1, based on a particular field. The 2 tables (they are actually content from a log file) look like the follow : Table #1 ------------ ...
Perl
Dec 14, 2001 at 2:43 am
Dec 15, 2001 at 3:09 pm -
hi dear team... why do you use always "mysql" and not "postgres" ?? thx for your time. Best regards. Nafiseh Saberi www.iraninfocenter.net www.sorna.net Beaty is in the eye of the beholder. ...
Nafiseh saberi
Dec 6, 2001 at 11:27 am
Dec 11, 2001 at 4:39 am -
Hi there, This is both frustrating and embarrassing. I can't capture the following data into a variable. The line I want is: <DL.COD GIAZUC00</DL.COD I have tried a multitude of Regex, none seems to ...
Dermot Paikkos
Dec 5, 2001 at 12:32 pm
Dec 5, 2001 at 6:49 pm -
How I can know in that I number of line finds a word in a text file?. For example, a file "file.txt" contains the following list: Chocolate Cake Cheese Apple orange melon lemon How I can know in that ...
Mark Mclogan
Dec 28, 2001 at 9:37 pm
Dec 30, 2001 at 2:31 am -
-----BEGIN PGP SIGNED MESSAGE----- Hello all, I'm writing a common gateway interface that will call I need to issue several shell commands. (cp, cd, and cd .., and maybe others). Any assistance would ...
Mark-Nathaniel Weisman
Dec 23, 2001 at 6:43 am
Dec 26, 2001 at 10:59 pm -
Hi all, I am new here. But I need to ask what I hope is a relatively easy question. I am writing a script that checks a password that someone enters. I have what can be allowed in the password in and ...
Batchelor, Scott
Dec 20, 2001 at 7:41 pm
Dec 21, 2001 at 10:13 am -
I need to know the fastest way to determine a length of an array. I know there is a built in kind of thing somewhere. I just cant remember it. Thanks
Ryan Guy
Dec 17, 2001 at 8:22 pm
Dec 19, 2001 at 12:41 am -
I'd appreciate it if someone could help me wrap my brain around this one. I've got a string like this: $string='"one two" three "four five six"'; I'd like to wind up with an array like this: one two ...
Pete Emerson
Dec 12, 2001 at 2:09 pm
Dec 13, 2001 at 1:32 pm -
Hello, I have been using Perl for some time but have not yet used the Perl modules. I wanted to start off with the HTML::Template module - it will save me a lot of effort if I can use it. I need to ...
Sharat Hegde
Dec 7, 2001 at 6:45 am
Dec 10, 2001 at 7:10 am -
Is there a quick, simple command I can use to disable Modperl on all variables in script, without having to qw' then all? Agustin Rivera Webmaster, Pollstar.com http://www.pollstar.com
Agustin Rivera
Dec 7, 2001 at 11:30 pm
Dec 8, 2001 at 7:21 pm -
Hi List, I am new to perl and looking for a shortcut way of doing this. # $letter could be any letter from A to L. if ( $letter eq "A" || $letter "B" || $letter "C" || $letter eq "D" ............ || ...
Nguyen, Andy
Dec 5, 2001 at 7:17 pm
Dec 5, 2001 at 8:20 pm -
Hi, I am transfering xyz.txt file from windows98 to linux server manually. $r_file = "xyz.txt" ; then in perl script i am executing `chmod 0777 $r_file` ; # $r_file is in the same directory as is ...
Rahul Garg
Dec 4, 2001 at 12:39 pm
Dec 4, 2001 at 4:12 pm -
Hi All, I used to use Expect http://expect.nist.gov/ for dealing with interactive programs i.e. Telnet and FTP. Expect lets you interact with running process as if it was a file. Does Perl have ...
Ahmed Moustafa
Dec 4, 2001 at 3:38 am
Dec 4, 2001 at 3:06 pm -
Does anyone know how to get a script to execute at a predefined time without user interaction. I would like to monitor my sys clock and have the perl script execute. Thanks Jeff
Jeff
Dec 28, 2001 at 4:41 pm
Dec 29, 2001 at 4:26 pm -
Hello, I need to delete an element from a list (array). The delete function does not seem to work. For example if I need to delete element number "i" from the list "myList", then the code delete ...
Sharat Hegde
Dec 21, 2001 at 9:36 am
Dec 21, 2001 at 9:57 pm -
here is a snip of code that opens a .csv file, massages some of the data a bit, and then writes it back to a new .csv file. The problem is that I can't figure a quick way to print out with commas ...
Scott Lutz
Dec 17, 2001 at 8:05 pm
Dec 19, 2001 at 10:58 am -
Hi, I'm trying to get my ascii, hex, and decimal values straight. I wanted to print out all values from 0 - 256. It works , but I'm getting unexplained (as of yet) "corruption" in the alignment of ...
Zentara
Dec 15, 2001 at 2:22 am
Dec 19, 2001 at 12:48 am -
Hello, Want to make sure I'm not missing anything here. My task is to see if a file looks like it's encrypted. I'm splitting the path/filename/extension via File::Basename and checking to see if the ...
Ray Murphy
Dec 6, 2001 at 5:06 pm
Dec 7, 2001 at 3:07 am -
Hey all, Please don't stree to much over this one but, is there an easier way of writing this? while(1){ if ($status == 1) { #Do this sub... sub(); elsif ($status == 1) { #Do this other sub... ...
Daniel Falkenberg
Dec 5, 2001 at 4:50 am
Dec 5, 2001 at 2:27 pm -
I would like to replace all double with single quotes inside a html tag, i.e. perform the substitution only for html tag attributes, but not outside tag boundaries. my $string = qq|<a ...
Birgit kellner
Dec 30, 2001 at 10:34 am
Jan 7, 2002 at 1:34 pm -
Connie Chan
Dec 30, 2001 at 5:48 pm
Dec 31, 2001 at 10:02 am -
Hi. I am trying two items in a script: - I have to read a file and when I find certain word I must change it for other one. - I have to read a file and when I find certain word I must delete it from ...
Jose Vicente
Dec 20, 2001 at 3:24 pm
Dec 29, 2001 at 10:36 am -
Below is a hash array... %hash('james' = '1', 'kelty' = '2', 'brian' = '3'); This is my normal structure for a hash array, but I was wondering if it was possible to have multiple values for a key? ...
James Kelty
Dec 28, 2001 at 10:20 pm
Dec 29, 2001 at 9:39 am -
7
Question
GlacierI am using the GD:Graph for plotting the graphs. These graphs are generated on the fly and displayed on a wab browser. I need to put some explaintion of the graphs beside it. Can anybody know ...Pankaj Warade
Dec 19, 2001 at 8:55 pm
Dec 27, 2001 at 11:10 pm -
I have installed Active Perl on top of the regular Perl and now the @INC is not pointing to the right directories anymore. Is there a config file I can modify to fix that? Thanks a lot, Pierre
Pierre Carette
Dec 21, 2001 at 12:04 am
Dec 21, 2001 at 8:42 pm -
Does anyone know how to send an HTML formatted email using sendmail. I can send plain text email OK. If I format the message using HTML the message shows the HTML tags. I can't find any information ...
Jeff
Dec 17, 2001 at 5:44 pm
Dec 19, 2001 at 4:04 am -
Every time any of you place a dollar sign ($) in the subject line, it gets tossed into the deleted file here. This is due to the vast amount of spam being sent over the Internet. I dare say there are ...
Wayne
Dec 18, 2001 at 11:03 pm
Dec 19, 2001 at 12:42 am -
Hello all, Could some one help me with the following code? Basically the code works OK except for the fact that the user $new_user (s) home dir is not created? #!/usr/bin/perl -w use ...
Daniel Falkenberg
Dec 14, 2001 at 1:35 am
Dec 14, 2001 at 6:25 pm -
If anyone knows where I can find some half way decent examples and explanations I would be thrilled thanks.
Ryan Guy
Dec 13, 2001 at 8:23 pm
Dec 13, 2001 at 10:08 pm -
Howdy: Where can i find documentation about using email addresses in perl scripts? I believe this has to do with regex, but I'd like to read it for myself. Not finding much but flames at the FAQ ...
Johnson, Shaunn
Dec 12, 2001 at 3:22 pm
Dec 13, 2001 at 12:41 pm -
Hi, I'm guessing this has been asked before, but is there a way to tell which modules you have installed? My system guys are picky about new ones, so I would like to know what we already have... -Pat
Patrick Griffin
Dec 11, 2001 at 6:47 pm
Dec 12, 2001 at 8:06 pm -
Hello, I have a wizard kind of form processing - basically 5 forms with user inputs in all the forms. The data is captured and stored at the end of the form processing. The data collected from the ...
Sharat Hegde
Dec 12, 2001 at 4:38 am
Dec 12, 2001 at 5:36 pm -
I have a set of timestamps, which are seconds since midnight. say, 36000 36001 36002 ..... I'd like to convert them into the format: 10:00:00 10:00:01 ..... Can I do this using Date::Manip, failing, ...
Tirthankar C. Patnaik
Dec 5, 2001 at 8:48 am
Dec 5, 2001 at 2:03 pm -
6
move
I'm sure this is a dumb question. It seems like one anyways. Is there a move command in perl? I know I can copy then unlink a file but I cant find a move (or similar) command. -MichaelMichael McQuarrie
Dec 31, 2001 at 3:51 pm
Dec 31, 2001 at 5:07 pm -
Hi to all! I'm just starting Perl, since... a few hours ago... I have a text files to analyze. Each line looks like : "a", "bcd, efg, h", "c" I found that $l=readline($filehandle) gives me the ...
Jean-Louis
Dec 29, 2001 at 6:59 pm
Dec 30, 2001 at 2:12 am
354 users for December 2001
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)