Search Discussions

107 discussions - 558 posts

  • 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 ...
    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 ...
    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 QianMing 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 NiekerkHuub 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 (兰花仙子)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 ...
    Nov 13, 2009 at 6:16 am
    Nov 14, 2009 at 5:02 pm
  • 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 GuptaAnant 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 smithTom 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 ...
    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 SchmidtDavid 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 =~ ...
    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 smithTom 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 ...
    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 JackieJackie 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\)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 FosterJeremiah 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 ChristensenDavid 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 GuoRemy 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 ...
    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 ...
    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 BertrandSteve 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 ...
    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 GuptaAnant 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 AlipioMichael 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 QianMing 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 ...
    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 BertrandSteve 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 CoopsRob 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 KalraParag 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 PotterPhilip 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....
    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 AlipioMichael 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 KalraParag 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 :, Interfaces : Im trying to get the ip's after Interfaces into an ...
    Brent ClarkBrent 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 NLKammen 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 LomeliJulia 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 ...
    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
    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 NiekerkHuub 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 ...
    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 MorlandChad 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 BertrandSteve 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 ...
    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 AhamedShameem 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 ...
    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 TangDave 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 KalraParag 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 SacksMatthew 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 ...
    Nov 7, 2009 at 5:52 pm
    Nov 9, 2009 at 6:49 pm
Group Navigation
period‹ prev | Nov 2009 | next ›
Group Overview
groupbeginners @

105 users for November 2009

Shawn H Corey: 37 posts John W. Krahn: 36 posts Dermot: 35 posts Tom smith: 28 posts Philip Potter: 23 posts Uri Guttman: 23 posts Parag Kalra: 20 posts Gaochong: 15 posts Steve Bertrand: 14 posts Jim Gibson: 13 posts Shlomi Fish: 13 posts Charles DeRykus: 12 posts Rob Coops: 12 posts 兰花仙子: 12 posts Peter Scott: 10 posts Dr.Ruud: 9 posts Dave Tang: 8 posts Huub van Niekerk: 8 posts Mark_Galeck: 8 posts Jeff Pang: 7 posts
show more