Search Discussions
-
A while ago I asked for an example of a dispatch table. rkb@i.frys.com was kind enough to post the example below. After tinkering with it a while I think I got it working ok, but I wondered when you ...
Harry Putnam
Apr 24, 2010 at 2:40 am
May 6, 2010 at 11:00 pm -
Why is it that the first two splits do not produce any elements? #!/usr/local/bin/perl use strict; use warnings; my $var = 100421; my @elems1 = split(/\d/,$var); my @elems2 = split(/./,$var); my ...
Harry Putnam
Apr 11, 2010 at 3:40 pm
Apr 13, 2010 at 7:13 am -
Hi. I'm new to perl, and I stumbled across a strange behavior in my for loop. In the following code, the second for loop actually counts way passed what I expected, and actually stops at "yz" and not ...
Magne Sandøy
Apr 13, 2010 at 3:36 am
Apr 14, 2010 at 2:57 pm -
Hi, The following line stores the first return value by the function Function1 to the variable $name: my ($name) = @_[0] = &Function1 ($arg); but this one doesn't work: my ($name) = $_[0] = ...
Akhthar Parvez K
Apr 29, 2010 at 11:31 am
Apr 30, 2010 at 4:40 pm -
I think this will work, but is it elegant.? If (condition){ if (nexted_condition){ do this. } Elsif (nexted_condition){ Do that... } else{ Do something else. } } else{ Do something else.. } Mimi
Mimi Cafe
Apr 13, 2010 at 11:36 pm
Apr 15, 2010 at 6:26 pm -
noob question" I see advanced users here using various styles of open(). (wrapping done by -ed) This: open( my $outfile, ' ', 'perlfile.txt') or die(" Error opening file:$!"); And this: open my ...
Harry Putnam
Apr 6, 2010 at 4:14 am
Apr 8, 2010 at 10:55 pm -
Hi list, I am just wondering if I sumbled upon an error in perl an error in my logic or somehtign else see the below perl one liners $ perl -e '$n = 0.945; $r = sprintf("%.2f", $n); print "$r\n";' ...
Rob Coops
Apr 26, 2010 at 10:38 am
Apr 29, 2010 at 7:37 am -
I used MySQL substr function to extra 100 characters from the result of a query, but understandably, I don't get what I want. Now I looked at Perl's substr function and it doesn't look like it can ...
Mimi Cafe
Apr 18, 2010 at 1:34 pm
Apr 18, 2010 at 10:43 pm -
I need to do some matching of filenames in two top level directories. We expect to find a number of cases where the endnames ($_) are the same in both hierarchies but the full name is different. ...
Harry Putnam
Apr 29, 2010 at 3:51 am
Apr 30, 2010 at 2:09 am -
Hi, I am having some problems making this little script work, it is supposed glob files from current dir, and add stuff at the top and bottom of such files. I am also unshure how the "autoflush" ...
Abimael Martinez
Apr 12, 2010 at 3:16 am
Apr 12, 2010 at 3:54 pm -
10
html print
I'm having trouble getting a piece of data from a form input to print in html. Here's the relevant portion of my code sub subroutine { my($hash) = shift; my($data) = "$hash- {'expl'}"; print ...Chris Coggins
Apr 12, 2010 at 8:48 am
Apr 16, 2010 at 7:22 pm -
Hello Perlers, this is probably going to be quick one. I know how to get an subroutine reference under "normal" circumstances, but I don't know how to get one from an object instance. Like: ---%<--- ...
Eric Veith1
Apr 7, 2010 at 4:23 pm
Apr 12, 2010 at 9:55 pm -
Hello, I need help by using threads in combination with external packages (modules). At main script threads were created and within these threads an database-handler was defined. My Intention is to ...
Frenzel, Joerg (ext)
Apr 7, 2010 at 11:59 am
Apr 8, 2010 at 8:09 am -
Inside a here doc, how can I force an expression to be evaluated such as localtime: print <<"END"; `localtime time` Foo Bar END I know I can simply create the var before, my $var = localtime time; ...
Joseph L. Casale
Apr 30, 2010 at 4:27 pm
Jun 2, 2010 at 8:12 am -
Hi, When i am trying to install ExtUtils i have these errors are coming. I am trying ti install it in Mandriva. Can any one can give be the clue. Thanks in advance. *[root@localhost ...
Raheel Hassan
Apr 22, 2010 at 11:21 am
Apr 30, 2010 at 12:06 pm -
Hello People, I am stuck on a minor problem. How can I create a hash? Data is as follow ---------- DATA ---------- # abc <-- this_should_be_hash_name {space} "random_name_or_number" "date" ...
Raphael()
Apr 15, 2010 at 4:59 am
Apr 16, 2010 at 9:19 am -
[This message was inadvertently originally posted in a totally inappropriate group, so reposted here where it was supposed to have gone] Sorry that this is something of a ramble. I've been using perl ...
Harry Putnam
Apr 6, 2010 at 3:57 pm
Apr 12, 2010 at 3:07 pm -
Patrick Dupre
Apr 7, 2010 at 5:44 pm
Apr 8, 2010 at 5:46 pm -
Hey all. I'm trying to make a perl script create some bat scripts to run some specific command and run a few at a time. If that makes any sense. Anyhow, say there are 20 files in a dir. Now these ...
Paul
Apr 29, 2010 at 6:20 pm
Apr 30, 2010 at 5:58 pm -
Hi, Could someone explain this condition: Scenario: #1 unless ( (defined $result) && ($test !~ /TEST/) ) { my $result = "OK"; print "$result\n"; } I thought it was: UNLESS (IF NOT) $result is defined ...
Akhthar Parvez K
Apr 29, 2010 at 11:25 am
Apr 30, 2010 at 1:53 am -
Hello, I have a entry in my directory that is a soft-link to another directory. Is there a way in perl to get, starting from the link, the path of the real directory ? Thanks Andreas
Andreas Moroder
Apr 27, 2010 at 12:05 pm
Apr 29, 2010 at 8:54 pm -
Hi all, I used colorAllocateAlpha to specify a transparent color. After filling a circle with it, I don't see the background line which is drawn before. The code is pasted below. What did I do wrong ...
CHAN, KENNETH 1 [AG/7721]
Apr 22, 2010 at 9:12 am
Apr 27, 2010 at 1:58 am -
I've run into one of those things where I can't see why my code fails. ... and know it has to be something obvious. Why does the second usage of stat... fail in the find() funciton? ...
Harry Putnam
Apr 21, 2010 at 11:30 pm
Apr 22, 2010 at 3:23 pm -
Hi all, I need to convert a lot of UNIX scripts into Perl. Most of them uses the UNIX's EOF/EOL functionality. These scripts are mostly used to connect to Oracle databases. At the moment, installing ...
Newbie01 perl
Apr 19, 2010 at 9:21 am
Apr 22, 2010 at 4:31 am -
Hi all, In one of my projects, I've written a test file t/22-upgrade.t. I have a test within this file that looks for an existing installation, checks the versions, and compares the configuration ...
Steve Bertrand
Apr 15, 2010 at 10:50 pm
Apr 17, 2010 at 7:28 pm -
Hello, is it possible to get the acl entrie of a directory on linux with perl ? Thanks Andreas
Andreas Moroder
Apr 27, 2010 at 12:03 pm
Jun 8, 2010 at 3:49 pm -
#!/usr/bin/env perl use warnings; use strict; my $x= (1,2,3); print $x,"\n"; exit(0); ************************************* output: Useless use of a constant in void context at ./try.plx line 4. 3 ...
Srd
Apr 20, 2010 at 2:59 pm
Apr 21, 2010 at 5:01 pm -
Hello all, I was helping a friend to install activeperl but encountered a weird error. The OS is Windows 7 with x64 chipset. I downloaded the ActivePerl 5.10 for x64 ( ...
CHAN, KENNETH 1 [AG/7721]
Apr 13, 2010 at 7:51 am
Apr 15, 2010 at 10:53 am -
Patrick Dupre
Apr 1, 2010 at 3:14 pm
Apr 14, 2010 at 1:23 am -
I would like to download all the modules (atleast important ones) from cpan website and keep them in my local disk rather going into www everytime. Can someone tell how to download all of them? Cheers
Open Source
Apr 9, 2010 at 2:19 pm
Apr 10, 2010 at 1:15 pm -
I have a test harness set up with a series of Selenium test scripts. Each script tests a specific scenario on my web site. But I have some scenarios that I want to test multiple times with different ...
Bob McConnell
Apr 6, 2010 at 3:54 pm
Apr 9, 2010 at 8:13 pm -
hi all, I've got a problem in following script: sub A { our %a; $a{"fred"} = 1; $a{"bella"} = 2; ... } sub B { if ($fred != $a{"fred"}) { print "fred failed.\n"; } if ($bella != $a{"bella"} { print ...
Remy Guo
Apr 29, 2010 at 8:30 am
Apr 29, 2010 at 8:02 pm -
I need to evaluate a statement in an if, elsif, else block, and the statement to evaluate in the elsif is too large as I need to run a SQL query and act on the return value. What would be a better ...
Mimi Cafe
Apr 21, 2010 at 3:56 am
Apr 21, 2010 at 8:13 pm -
I get following error when trying to open a session using Apache::Session::MySQL. Here is what I have 38 tie %session, " Apache::Session::MySQL", undef,{ 39 Handle = $dbh, 40 LockHandle = $dbh 41 }; ...
Mimi Cafe
Apr 18, 2010 at 11:15 pm
Apr 19, 2010 at 11:16 pm -
Hi,all: the "learning perl" say an array can have any number of elements,but when i run such codes: #!perl @abc=1..999999999999999999999999999999999; print @abc; it shows "range iterator outside ...
Xubo
Apr 13, 2010 at 9:43 am
Apr 13, 2010 at 4:18 pm -
Hi, I got this scrip that is suppsed to use the use the Getopt::Std; and GD::Graph::bars; to input generate an array from a file (age). With this array, the GD::Graph::bars is going to create a ...
Alekto
Apr 7, 2010 at 3:51 am
Apr 11, 2010 at 3:32 pm -
I get a page full of output from a command passed into a Net::Telnet session that as per the cpan example is stored in $output. I then want to call a sub passing $output into it, that matches a ...
Joseph L. Casale
Apr 11, 2010 at 3:10 am
Apr 11, 2010 at 4:49 am -
Hi all, I would like to read in a binary file and extract the 4-byte ints from it. Under Linux, something like "od -t uI". I got it working as follows: my $buffer = <STDIN ; my @buffer = split //, ...
Raymond Wan
Apr 8, 2010 at 5:30 am
Apr 9, 2010 at 3:29 am -
Hi all, We currently have OEM installed but will have to uninstall it due to Oracle Licensing issues. Customers do not want to pay for the performance and diagnostic pack and are actually considering ...
Newbie01 perl
Apr 6, 2010 at 11:47 am
Apr 7, 2010 at 1:04 pm -
Thanks to much help from the list, and hours of reading up on Unicode, the Encode module, and many posts to perlmonks, I've come up with a hideous solution for processing text files with different ...
Doug Cacialli
Apr 3, 2010 at 7:49 pm
Apr 7, 2010 at 8:41 am -
Hey All, Wanted to know if Perl has any interactive shell (just like Python, Bash, Ruby etc have) by any chance. And if yes how do we invoke that. Cheers, Parag
Parag Kalra
Apr 28, 2010 at 6:38 am
May 2, 2010 at 12:55 am -
Hello, I'm looking about how to work with $? returning from a system call. I have the following : system("echo 'DIS CHS(*)' | runmqsc SQFR | grep CHANNEL | sort | uniq -c"); print $?; which is ...
Bruno Costacurta
Apr 22, 2010 at 12:04 pm
Apr 26, 2010 at 2:56 pm -
HI all, Does anyone know of any XML to text Perl script around that I can use? Basically, I have an XML file that is supposed to composed of fields and unfortunately on the server, I do not have a ...
Newbie01 perl
Apr 21, 2010 at 12:23 am
Apr 26, 2010 at 7:00 am -
Hi, This is embarrassing. All I want to do is read the content of a simple 10 line .txt file into an array and print out the lines, and I just can't seem to get it to work! /* $target = ...
Kryten
Apr 21, 2010 at 8:04 pm
Apr 22, 2010 at 8:01 pm -
Hi, I wonder if some of you are in the same situation like me: I am the only Perl programmer in the company, at least trying hard to get along :-), but I have nobody to ask for help. So I spend hours ...
HACKER Nora
Apr 22, 2010 at 9:39 am
Apr 22, 2010 at 11:25 am -
I am trying to match words or complete phrase (excluding special characters) like: 1. Tom 2. Tom and Jerry 3. Audio A4 Quattro I need to ensure users cannot feed my program with special characters so ...
Mimi Cafe
Apr 21, 2010 at 9:53 pm
Apr 22, 2010 at 7:42 am -
Hi all, I wanted to display the actual values in an array by the following simple codes: ********************************* use Class::Inspector; use Bio::Graphics; my @methods = Class::Inspector- ...
CHAN, KENNETH 1 [AG/7721]
Apr 13, 2010 at 7:34 am
Apr 13, 2010 at 10:35 am -
Is there a limit to the length of a string in perl? I'm combining about 200 pieces of data into a single string and writing the string to a file and am getting some weird behaviors every once in a ...
Chris Coggins
Apr 8, 2010 at 12:08 pm
Apr 12, 2010 at 10:26 pm -
Hi! I made this short script in order to see if there is posible to run "modified" unix commands from a Perl script. #!/usr/bin/perl use strict; use warnings; my $load = `uptime | awk '{print $8 $9 ...
Niko zuna
Apr 9, 2010 at 3:31 pm
Apr 9, 2010 at 5:42 pm
114 users for April 2010
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)