Search Discussions
-
Hey everyone, I am trying to get just the last 3 numbers from the following number from perl using regexs but I have not had no success so I was hoping that I could get a little help on this. I just ...
Shadow52
Nov 23, 2009 at 3:27 am
Nov 24, 2009 at 3:16 pm -
Hi, I just finished reading 'Learning Perl' & I was wondering if someone could point me to the book "Perl Study Guide", also called "Learning Perl Student Workbook". It's a companion book to ...
Raphael()
Nov 1, 2009 at 5:21 am
Nov 4, 2009 at 3:11 pm -
Hello, I encounter some code as follows, and can not understand. Would someone help me? use constant 'cache_result' = {}; sub abc { ............ ........... return cache_result- {$self- name}; } What ...
Ming Qian
Nov 15, 2009 at 4:40 am
Dec 3, 2009 at 4:17 pm -
Hi, I started getting this error after upgrading from Fedora 11 to 12. The line of code hasn't been changed: open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!"; The error is: ...
Huub van Niekerk
Nov 29, 2009 at 6:31 am
Dec 3, 2009 at 3:31 pm -
Hi, # perl -le '$_="aXXXb"; print "one word is $1" while(/(X*)/g);' one word is one word is XXX one word is one word is what are the three empty values in the output? Thanks. # perl -v This is perl, ...
Orchid Fairy (兰花仙子)
Nov 24, 2009 at 11:48 pm
Nov 25, 2009 at 6:24 pm -
i am trying to execute unix commands using perl.I am doing this using *System command.* Could i know how i could r*edirect the output of that command onto a log file either by using a perl script or ...
Subhashini
Nov 13, 2009 at 6:16 am
Nov 14, 2009 at 5:02 pm -
11
foreach loop
Hello, In the foreach loop, without going to the beginning of the loop, i want to get the next iteration of data. How do i get it. eg use strict; open(FILE,"<abc.txt") or die "CAnnot open"; my ...Anant Gupta
Nov 2, 2009 at 7:36 am
Nov 7, 2009 at 7:41 am -
1) I did: $ sudo cpan which asked me a lot of questions. I accepted the defaults. 2) Then as described here: http://sial.org/howto/perl/life-with-cpan/macosx/ I did: cpan o conf makepl_arg ...
Tom smith
Nov 2, 2009 at 8:55 am
Nov 5, 2009 at 1:52 pm -
Hi ,all : I want to know if there is a way in which I can randomnize(?) the content in an array. In this example : my @array = ('uriel', 'daniel', 'joel', 'samuel'); Now what I want is create a ...
Majian
Nov 3, 2009 at 7:11 am
Nov 3, 2009 at 5:55 pm -
Hello I would like to execute some Code after a certain amount of time has passed (then restart the timer but with a different time value) I looked at IO::Async::Timer::Countdown but this timer only ...
David Schmidt
Nov 30, 2009 at 3:45 pm
Dec 2, 2009 at 4:38 pm -
Now I have see the following page ,but I have some question and need help . http://www.cpan.org/authors/id/S/SU/SUJAI/Process-Detail-0.1.pl first,what is the meaning of if($pcs =~ /(\d+)/ && $pcs =~ ...
Gaochong
Nov 19, 2009 at 2:54 pm
Nov 23, 2009 at 6:47 pm -
Hi, Is there an easy way to wipe cpan off my computer? I would like to try a fresh install to see if that cures all the problems I've had with cpan. So far I can't install any modules with cpan. The ...
Tom smith
Nov 6, 2009 at 9:54 am
Nov 9, 2009 at 1:18 am -
#!/usr/bin/perl -w #Auther:gaochong use strict; my @list = (3 .. 9); my @FA=("FA00000001".."FA00002000"); sub mk_fa { my ($f) = @_; foreach my $p (@list) { mkdir "/data$p/NRU/$f",0755 or warn "mkdir ...
Gaochong
Nov 17, 2009 at 11:41 am
Nov 19, 2009 at 1:57 am -
I tried to adapt this code to obtain my desired output. I need help. My logic is While if lines are not empty {do} if lines are empty {do} While if lines are not empty {do} else for empty lines{do} I ...
Jackie Jackie
Nov 15, 2009 at 6:41 pm
Nov 18, 2009 at 9:40 am -
Hello I have a script that, much like the Little Old Lady who lived in a shoe, has so many children it's not sure what to do. Basically, the script does some stuff, then kicks off multiple copies of ...
Taylor, Andrew \(ASPIRE\)
Nov 9, 2009 at 11:04 am
Nov 10, 2009 at 9:48 pm -
Hi there! This may or may not be a beginners question. If not, please let me know where I ought to post. :-) I have a data structure, a simple array. It is made up of sections of files I have ...
Jeremiah Foster
Nov 28, 2009 at 1:13 pm
Nov 30, 2009 at 2:01 pm -
beginners: Is unlink() supposed to provide an error message on failure? The documentation does not say so: http://www.perl.com/doc/manual/html/pod/perlfunc/unlink.html Testing indicate that unlink() ...
David Christensen
Nov 18, 2009 at 7:44 pm
Nov 20, 2009 at 3:07 pm -
How to make a subroutine, if the caller is in scalar context, returns a scalar, if the caller is in list context, returns a list. Like most of Perl's built-in functions doing. Thanks.
兰花仙子
Nov 5, 2009 at 2:09 pm
Nov 6, 2009 at 12:01 am -
hi folks, i've got problem when trying to perform a substitution. the text file i want to process is like this: ... XXXXXX { ABDADADGA afj*DHFHH } (a123) XXDFAAF { af2hwefh fauufui } (b332) ... i ...
Remy Guo
Nov 3, 2009 at 2:41 am
Nov 4, 2009 at 1:10 am -
Hi, I was wondering if anybody can tell me what I am doing wrong. I am trying to use xcopy: system("XCOPY", "KCPSM3.EXE", $s_tempLocation, "/R /Y"); $s_tempLocation contains "c:\temp" When I run the ...
Axr0284
Nov 4, 2009 at 2:57 pm
Dec 14, 2009 at 1:15 pm -
Hello, I want to write a simple debug-print subroutine, which you could call like this: $foobar = "foobar"; dbgPrint foobar; and it would print the variable name and value. I came up with the ...
Mark_Galeck
Nov 23, 2009 at 7:36 am
Dec 3, 2009 at 3:23 pm -
Hi everyone, I'm looking to separate all of my MySQL logic (queries etc) out of my projects methods and into it's own class. Primarily, this is to provide me with the ability to change how the ...
Steve Bertrand
Nov 26, 2009 at 7:03 pm
Nov 28, 2009 at 10:13 pm -
Deal all, INFO uname -a = Linux perlsrv 2.4.27 #1 Tue Sep 23 15:34:56 CEST 2008 i686 GNU/Linux INFO perl -v = This is perl, v5.8.4 built for i386-linux-thread- multi I am seeking advice on how to ...
CM
Nov 25, 2009 at 8:04 pm
Nov 28, 2009 at 3:20 pm -
.. use strict; .. my %hash; my $abc; my $count; while(defined($ARGV[$count])) { push(@hash{$abc},$ARGV[$count]); } Can't i use this The error is "Type of arg 1 must be array not hash element ..." ...
Anant Gupta
Nov 12, 2009 at 10:01 am
Nov 13, 2009 at 10:34 am -
Hi, i'm planning to sort an input file (which was File::Slurp'ed, most likely megabyte-sized file) in various ways. I did some readings and learned several methods that people have come up with in ...
Michael Alipio
Nov 9, 2009 at 4:44 pm
Nov 10, 2009 at 4:17 am -
Dear All, I am a beginner. Recently, I receive a project in perl. In some *.pm files, use Carp; ......................... sub A warn "a warn message";
Ming Qian
Nov 2, 2009 at 2:51 pm
Nov 3, 2009 at 2:55 pm -
Hi, I want to print the last entry by record "1111" in this file "records.txt" The file is read in a subroutine and prints last line by the number in this example. # records.txt 1111 25.11.2009 ...
Raphael()
Nov 28, 2009 at 5:52 pm
Dec 1, 2009 at 9:12 am -
Hi all, I just upgraded from perl 5.8 to perl 5.10.1. Everything went well, except for a single module that I need. The offending code is this: ${$self- {__PB_TEMPLATE_LIST}}[$#{@{$self- ...
Steve Bertrand
Nov 25, 2009 at 7:17 pm
Nov 25, 2009 at 8:29 pm -
Dear list, I have a question to anyone who has experience with the following situation. I have a very complex array build from hashes containing arrays that contain hashes etc. I would like to store ...
Rob Coops
Nov 13, 2009 at 12:12 pm
Nov 18, 2009 at 3:46 pm -
Hi All, The general procedure which I following to process a files is: open FILE, "my_file.out"; while ( <FILE ) { print "$_\n"; } Now if want to again the loop through the contents of the file I was ...
Parag Kalra
Nov 17, 2009 at 5:53 pm
Nov 17, 2009 at 6:59 pm -
I am playing with List::MoreUtils::pairwise and noticed some funny behaviour. I'm trying to merge two lists of hashes into one list of hashes: pgp@tui:~/tmp$ cat bar.pl use strict; use warnings; use ...
Philip Potter
Nov 11, 2009 at 10:50 pm
Nov 12, 2009 at 3:26 pm -
Hi, Please help me to split a string as follows.. my $line = "abcdefghijkl" the expected output should be like: ab ef ij The logic is like alternate 2 characters should be removed....
Rithu
Nov 9, 2009 at 1:04 pm
Nov 10, 2009 at 3:36 am -
Hi, if I have a script that accepts any combination of the 5 or maybe even more options, say, option1, option2, option3... Now, after collecting the options, for each option, there is a corresponding ...
Michael Alipio
Nov 6, 2009 at 5:26 am
Nov 6, 2009 at 10:12 am -
Hey Folks, Its good to see veterans like - 'Randal L. Schwartz', 'Brian D Foy' replying on this mailing list. So just out of curiosity wanted to if Larry Wall is also member of this mailing list. I ...
Parag Kalra
Nov 4, 2009 at 3:48 pm
Nov 4, 2009 at 5:42 pm -
Hiya I was hoping that someone would be kind to help me. I have a string like so : Haresources : 10.203.4.5, Interfaces : 10.203.4.5 10.203.4.7 Im trying to get the ip's after Interfaces into an ...
Brent Clark
Nov 2, 2009 at 2:54 pm
Nov 3, 2009 at 9:23 pm -
Hi All, I've been looking at this for ages. Does anyone have a working script or example of how to use a dcc chat while already connected to a irc server. Without the use of additional modules like ...
Kammen van, Marco, Springer SBM NL
Nov 23, 2009 at 1:22 pm
Nov 30, 2009 at 2:35 pm -
Hi, Lets say I want grep to find all <div class="photo" whateverElementGoesInsideTheseDivTags</div in index.html I am using the code below but it seems that it's not working grep -o "<div ...
Julia Gallardo Lomeli
Nov 30, 2009 at 4:40 am
Nov 30, 2009 at 7:48 am -
Hi, I want the below if loop to end if it cannot find any match & print the die message. However it just exit without hitting my "die" As you can see in the code below I have tried many foolish ways ...
Raphael()
Nov 29, 2009 at 9:31 am
Nov 30, 2009 at 12:27 am -
Why does $foobar = \("foo", "bar"); print $$foobar; print "bar" ?? Thank you for any insight. Mark
Mark_Galeck
Nov 28, 2009 at 4:03 am
Nov 29, 2009 at 3:27 am -
Hi, Sorry if this is the wrong group. Using Fedora Linux, due to system changes the path to the Perl modules has changed. I've found that @INC contains the new path, but it's placed after the old ...
Huub van Niekerk
Nov 27, 2009 at 7:58 pm
Nov 28, 2009 at 9:07 pm -
Hi ,all: I have a problem about this : cat test: 12 23 34 45 56 67 ... I want to become like this : 1223 3445 5667 ... That means the next line is after the above line ~ I thought it for a long time ...
Majian
Nov 27, 2009 at 12:04 pm
Nov 28, 2009 at 2:15 am -
I have a feeling I am missing something basic so I am looking to this list for help. Assume the following: my $vhost_server_name = qw(somedomain.com); my @vhost_server_alias_array = ...
Chad Morland
Nov 24, 2009 at 4:57 pm
Nov 24, 2009 at 6:06 pm -
Hi everyone, I'm curious to know if there is an easy way to scan a list of module files and identify how many subs are calling a different specific sub. I've got a method that must be called once by ...
Steve Bertrand
Nov 23, 2009 at 4:08 pm
Nov 24, 2009 at 1:03 pm -
Hi, Can anyone tell me hoq to write a regular expression which matches anything _except_ a litteral string ? For instance, I want to match any line which does not begin with Nomatch. So in the ...
Mangled_us
Nov 17, 2009 at 4:55 pm
Nov 19, 2009 at 7:20 am -
Hi All, I am trying to create a script to get the logical disk status using Net::SNMP. My snmpget query is snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 ...
Shameem Ahamed
Nov 18, 2009 at 1:06 pm
Nov 18, 2009 at 2:10 pm -
Hello, I am not very familiar with Perl, but I am trying to use it to email all files within a directory that have a .pdf extension using the anex command within the Mail::SendEasy module. I have ...
Tiffany
Nov 16, 2009 at 9:17 pm
Nov 17, 2009 at 2:24 pm -
Hi everybody, Is it possible to implement an incremental find* feature on a Perl CGI page? I'm running Apache2 with mod_perl on linux. For example, if I have a list of stuff (A, Aa, B, Bb, C, CA, ...
Dave Tang
Nov 17, 2009 at 3:59 am
Nov 17, 2009 at 10:14 am -
Hey All, I have a following a LDIF file to process through Perl - ############################################################### dn: ou=71404558, ou=Company, ou=Personal, o=paragkalra.com dn: ...
Parag Kalra
Nov 13, 2009 at 12:08 pm
Nov 15, 2009 at 6:30 am -
I am unabashedly posting a quiz question I have about regular expressions: Looking for suggestions. I am thinking 1) make the set of regular expressions into one big expression? 2) search the seach ...
Matthew Sacks
Nov 10, 2009 at 2:22 am
Nov 10, 2009 at 3:32 pm -
Have a simple script to FTP all files in one dir to a Solaris box. Script runs fine when invoked from command line. However, when invoked from browser (simple html form with one button that calls the ...
Boman
Nov 7, 2009 at 5:52 pm
Nov 9, 2009 at 6:49 pm
105 users for November 2009
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)