[31704] in Perl-Users-Digest
Perl-Users Digest, Issue: 2967 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon May 31 06:09:23 2010
Date: Mon, 31 May 2010 03:09:05 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 31 May 2010 Volume: 11 Number: 2967
Today's topics:
$$jordan coach bag ed tshirt with amazing price <1000lane03@gmail.com>
Can not locate object method "AddCell" via package "Spr <arindam.p2@gmail.com>
Re: Can not locate object method "AddCell" via package <zebeej@gmail.com>
Re: Is $_ special somehow? <john@castleamber.com>
Re: Is $_ special somehow? <john@castleamber.com>
Re: Is $_ special somehow? <willem@turtle.stack.nl>
Re: Is $_ special somehow? <john@castleamber.com>
Our customer websites are modern, fresh and accessible. <studt15@gmail.com>
Re: Our customer websites are modern, fresh and accessi <tadmc@seesig.invalid>
Re: running jar file with multiple arguments in perl <xhoster@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 30 May 2010 06:21:01 -0700 (PDT)
From: lane 1000 <1000lane03@gmail.com>
Subject: $$jordan coach bag ed tshirt with amazing price
Message-Id: <af75eb81-4330-4199-99bb-1c68a2bd1b26@p5g2000pri.googlegroups.com>
$$jordan coach bag ed tshirt with amazing price
please kindly visite our website: http://www.8000trade.com
You can find the more photos and the price for our product in our
website,we are selling lots of brand new shoes,clothing,
handbag,sunglasses,hats etc for sale, all of our product is 1000000%
best quality but the price is amazing. Sunglass: prada, lv,gucci,
dior, D&G channeletc $15-35 you will get better piece if you become
our member, we have large member now, they are satisfied with our
productif interested please email me by we are selling all brand new
handbag, please see below of the sunglass we have the reference price,
we take paypal as payment, and you will get better piece if you become
our member, we have large member now, they are satisfied with our
productour, hi body, we are a online shopping store,
please kindly visite our website: http://www.8000trade.com
------------------------------
Date: Sun, 30 May 2010 13:48:33 -0700 (PDT)
From: Arindam <arindam.p2@gmail.com>
Subject: Can not locate object method "AddCell" via package "Spreadsheet:: ParseExcel ::Workbook"
Message-Id: <a4a7d362-d739-4cae-9d24-6281c0f49995@o1g2000vbe.googlegroups.com>
"Hi,
I am trying to to learn PERL, I am using it for an Automation Tool,
Selenium RC. My target is to open google. If the operation is
successful, I will open an existing excel sheet and write PASS, if it
fails, It will write Fail. I have installed the required library. The
code is as follows:-
--------------
use strict;
use warnings;
use Time::HiRes qw(sleep);
use Test::WWW::Selenium;
use Test::More "no_plan";
use Test::Exception;
use Spreadsheet::WriteExcel;
use Spreadsheet::ParseExcel;
use Spreadsheet::ParseExcel::SaveParser;
print "\n\n **Enter You Browser Choice :: ";
my $browser = <STDIN>;
my $row;
my $col;
my $count;
my $sheet;
$row = 0;
$col = 0;
$sheet = 0;
$count = 1;
my $sel = Test::WWW:: Selenium->new( host => "localhost",
port => 4444,
browser => "*$browser",
browser_url => "http://www.google.uk/" );
my $parser = new Spreadsheet::ParseExcel;
my $template = $parser->Parse("test_result.xls");
$template->AddCell(0, $row+1, $col, $browser);
if($sel->open_ok("http://www.google.co.uk/")){
$template->AddCell(0, $row+1, $col+1, "Home Page
:http://www.shopzilla.co.uk/"); $template->AddCell(0, $row, $col+2,
"Pass");
}
else{
$template->AddCell(0, $row+1, $col+3, "Fail");
---------------
After running the program, I am getting the following error:-
Can not locate object method "AddCell" via package "Spreadsheet::
ParseExcel ::Workbook"
I would be grateful, if anyone could give me some guidance to
resolve the problem.
Thanking You in Anticipation,
Arindam Pattanayak
===================="
------------------------------
Date: Sun, 30 May 2010 21:12:43 +0000 (UTC)
From: Zebee Johnstone <zebeej@gmail.com>
Subject: Re: Can not locate object method "AddCell" via package "Spreadsheet:: ParseExcel ::Workbook"
Message-Id: <slrni05l0l.n7.zebeej@gmail.com>
In comp.lang.perl.misc on Sun, 30 May 2010 13:48:33 -0700 (PDT)
Arindam <arindam.p2@gmail.com> wrote:
> "Hi,
> I am trying to to learn PERL, I am using it for an Automation Tool,
> Selenium RC. My target is to open google. If the operation is
> successful, I will open an existing excel sheet and write PASS, if it
> fails, It will write Fail. I have installed the required library. The
> code is as follows:-
>
> use Spreadsheet::WriteExcel;
> use Spreadsheet::ParseExcel;
> use Spreadsheet::ParseExcel::SaveParser;
> my $parser = new Spreadsheet::ParseExcel;
> my $template = $parser->Parse("test_result.xls");
>
> $template->AddCell(0, $row+1, $col, $browser);
>
>
> After running the program, I am getting the following error:-
> Can not locate object method "AddCell" via package "Spreadsheet::
> ParseExcel ::Workbook"
I know nothing about those modules, but it looks to me like one called
"ParseExcel" is reading not writing.
If you want to write, should you be creating an object with WriteExcel
not ParseExcel?
and if you do
perldoc Spreadsheet::ParseExcel
is there mention of AddCell? Or is that only in perldoc
Spreadsheet::WriteExcel?
Zebee
------------------------------
Date: Sat, 29 May 2010 14:16:50 -0500
From: John Bokma <john@castleamber.com>
Subject: Re: Is $_ special somehow?
Message-Id: <874ohq34d9.fsf@castleamber.com>
"Uri Guttman" <uri@StemSystems.com> writes:
>>>>>> "JB" == John Bokma <john@castleamber.com> writes:
>
> JB> "Uri Guttman" <uri@StemSystems.com> writes:
> >> you don't say what is different or show output. this is a classic newbie
> >> issue saying something doesn't work but not saying what you expected vs
> >> what you see.
>
> JB> He did: he expect the second snippet to work like the first. It doesn't
> JB> matter what the output is IMO, since it's clear what the mistake is in
> JB> the second example.
>
> JB> Please don't make beginners look stupid, thank you.
>
> i beg to differ. claiming the two outputs aren't the same isn't the same
> as saying what is different about them. that info would always make it
> easier to find the bug. and it is a good lesson on how to describe
> bugs. the classic 'it doesn't work' is something you need to teach to
> avoid.
On the latter I agree wholeheartedly with you. But to me the OP posted
sufficient information to provide a solution IMO. I think most people
here saw the solution before even reading what was wrong with it :-).
--
John Bokma j3b
Hacking & Hiking in Mexico - http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development
------------------------------
Date: Sat, 29 May 2010 14:17:41 -0500
From: John Bokma <john@castleamber.com>
Subject: Re: Is $_ special somehow?
Message-Id: <87zkzi1pre.fsf@castleamber.com>
Willem <willem@turtle.stack.nl> writes:
> John Bokma wrote:
> ) "Uri Guttman" <uri@StemSystems.com> writes:
> )
> )> you don't say what is different or show output. this is a classic newbie
> )> issue saying something doesn't work but not saying what you expected vs
> )> what you see.
> )
> ) He did: he expect the second snippet to work like the first. It doesn't
> ) matter what the output is IMO, since it's clear what the mistake is in
> ) the second example.
>
> It is irrelevant that the mistake is clear.
To quote Uri: "I beg to differ". ;-)
--
John Bokma j3b
Hacking & Hiking in Mexico - http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development
------------------------------
Date: Sat, 29 May 2010 19:29:51 +0000 (UTC)
From: Willem <willem@turtle.stack.nl>
Subject: Re: Is $_ special somehow?
Message-Id: <slrni02qpf.21v8.willem@turtle.stack.nl>
John Bokma wrote:
) "Uri Guttman" <uri@StemSystems.com> writes:
)> i beg to differ. claiming the two outputs aren't the same isn't the same
)> as saying what is different about them. that info would always make it
)> easier to find the bug. and it is a good lesson on how to describe
)> bugs. the classic 'it doesn't work' is something you need to teach to
)> avoid.
)
) On the latter I agree wholeheartedly with you. But to me the OP posted
) sufficient information to provide a solution IMO. I think most people
) here saw the solution before even reading what was wrong with it :-).
Your 'but' is irrelevant. You don't seem to get the point.
For simple problems, a half-assed description is enough to spot the
problem. However, somebody who posts simple problems is also learning
*how to ask questions*. And giving half-assed descriptions is not a
good way to ask questions. Therefore, you should look beyond the simple
problem and see the opportunity to educate somebody on the efficiency
of question-asking.
I notice that crossthread, you posted 'i beg to differ' to my post where
I made roughly the same point. You also snipped my argumentation, and
gave no arguments of your own. That is not a good way to argue.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
------------------------------
Date: Sat, 29 May 2010 15:43:07 -0500
From: John Bokma <john@castleamber.com>
Subject: Re: Is $_ special somehow?
Message-Id: <87hblqcuck.fsf@castleamber.com>
Willem <willem@turtle.stack.nl> writes:
> John Bokma wrote:
> ) "Uri Guttman" <uri@StemSystems.com> writes:
> )> i beg to differ. claiming the two outputs aren't the same isn't the same
> )> as saying what is different about them. that info would always make it
> )> easier to find the bug. and it is a good lesson on how to describe
> )> bugs. the classic 'it doesn't work' is something you need to teach to
> )> avoid.
> )
> ) On the latter I agree wholeheartedly with you. But to me the OP posted
> ) sufficient information to provide a solution IMO. I think most people
> ) here saw the solution before even reading what was wrong with it :-).
>
> Your 'but' is irrelevant. You don't seem to get the point.
I do get "the point", we just disagree.
> gave no arguments of your own. That is not a good way to argue.
Argueing only makes sense if at least one party is willing to learn,
hence pointless here.
--
John Bokma j3b
Hacking & Hiking in Mexico - http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development
------------------------------
Date: Sat, 29 May 2010 15:32:29 -0700 (PDT)
From: Dan Studt <studt15@gmail.com>
Subject: Our customer websites are modern, fresh and accessible.
Message-Id: <0649271f-bd34-4ce8-8d58-e44dfa4dd764@s4g2000prh.googlegroups.com>
The Frontier Group is a passionate web design and web development
company based in Perth, Western Australia. We design and deliver
beautiful, functional and accessible web sites & web applications.
http://thefrontiergroup.com.au/
------------------------------
Date: Sat, 29 May 2010 19:29:04 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: Our customer websites are modern, fresh and accessible.
Message-Id: <slrni03but.isa.tadmc@tadbox.sbcglobal.net>
Dan Studt <studt15@gmail.com> wrote:
> The Frontier Group is a
Spammer!
Using the same methods as pornographers and scam artists is
likely to be detrimental to your business...
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.liamg\100cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.
------------------------------
Date: Sat, 29 May 2010 16:10:53 -0700
From: Xho Jingleheimerschmidt <xhoster@gmail.com>
Subject: Re: running jar file with multiple arguments in perl
Message-Id: <4c01c3d6$0$25127$ed362ca5@nr5-q3a.newsreader.com>
Kulit Ko wrote:
> btw, ive also try :
> OPEN PIPE, "|java -jar program.jar";
> open FH, /abc.txt
> while (my $res = <FH>)
> print PIPE "$res";
> close FH;
> close PIPE;
You should check to see if your "open" succeeds.
Getting the syntax right would also help,
Search pattern not terminated at <something> line 2
Does your Java program want to talk directly with a tty, rather than an
ordinary stream?
Xho
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 2967
***************************************