RE: regular error

2012-07-11 Thread Jack Maney
, 2012 11:46 PM To: Jack Maney Cc: beginners@perl.org Subject: Re: regular error i am very sorry ! i am intend to parse variable $a by the regular variable $b . in below way! $a="abc[0]"; $b="

RE: regular error

2012-07-11 Thread Jack Maney
I don't understand what you're trying to say or do. Exactly what error message are you getting? -Original Message- From: xiyoulaoyuanjia [mailto:xiyoulaoyuan...@gmail.com] Sent: Wednesday, July 11, 2012 10:54 PM To: beginners@perl.org Subject: regular error *hi all:* * i have an error

RE: how to get a sequence of 01 02 ..

2012-06-11 Thread Jack Maney
How about: use strict; use warnings; foreach my $i(1..10){$i="0" . $i if length($i)==1;print "$i\n";} -Original Message- From: lina [mailto:lina.lastn...@gmail.com] Sent: Monday, June 11, 2012 8:49 AM To: beginners@perl.org Subject: how to get a sequence of 01 02 .. Hi, $ for i in `s

RE: there has to be a way

2012-06-06 Thread Jack Maney
I'll expand upon the same advice that I gave to you privately in an email: slow down. Use Data::Dumper to look at the data that you're capturing. Look at documentation to get the contents of a cell. If you're going to use code that you got from somewhere else, don't use it unless you can desc

RE: subroutine returning data

2012-06-05 Thread Jack Maney
ProTip: If you're going to ask for help, don't insult and dismiss out of hand the findings of those who take the time to help you. -Original Message- From: John W. Krahn [mailto:jwkr...@shaw.ca] Sent: Tuesday, June 05, 2012 2:18 AM To: Perl Beginners Subject: Re: subroutine returning dat

RE: lets post this nightmare for the 10th time

2012-05-29 Thread Jack Maney
Okay, let's go through this line by line: @{$sheet->{Cells}$row}; This line is, for all practical purposes, a no-op. You aren't assigning this array to anything, nor are you doing anything with it. Not to mention that I'm not sure what you're doing on the inside...did you mean $sheet->{Cells}

RE: how to quick print a series of *

2012-04-23 Thread Jack Maney
What you need is the "x" operator (http://perldoc.perl.org/perlop.html#Multiplicative-Operators): So, the following command: print "*" x 20 . "\n"; produces the following output: Jack -Original Message- From: lina [mailto:lina.lastn...@gmail.com] Sent: Monday,

RE: File::Find::Object::Rule problem

2012-04-22 Thread Jack Maney
Manfred, The issue is that you're storing the return value of the start method into $plf, and if you look at the source code, the start method returns 1. In fact, using Data::Dumper, print Dumper($plf) . "\n"; returns $VAR1 = 1; The start method is a method that doesn't return anything impo

RE: how to install a perl module which was downloaded in windows

2012-04-20 Thread Jack Maney
>From the command line, type: cpan Mail::Sender -Original Message- From: viknesh salivahanan [mailto:viknesh@gmail.com] Sent: Friday, April 20, 2012 2:46 PM To: beginners@perl.org Subject: how to install a perl module which was downloaded in windows Hi Gurus, Need a help with an i

RE: perl2exe

2012-04-18 Thread Jack Maney
Somu, What you're looking for is PAR::Packer (http://search.cpan.org/dist/PAR-Packer/lib/PAR/Packer.pm), and in particular, the PAR Packager application pp (http://search.cpan.org/dist/PAR-Packer/lib/pp.pm). Sincerely, Jack -Original Message- From: Somu [mailto:som@gmail.com] Se