[25826] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8063 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue May 10 00:05:25 2005

Date: Mon, 9 May 2005 21:05: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, 9 May 2005     Volume: 10 Number: 8063

Today's topics:
    Re: Media Lending Library - web based application <1usa@llenroc.ude.invalid>
    Re: Media Lending Library - web based application <mdetomaso@bak.rr.com>
    Re: Media Lending Library - web based application <mdetomaso@bak.rr.com>
        Simple error using GD::Graph on Windows <pump_yo_brakes@hotgetridofthisbitmail.com>
    Re: Simple error using GD::Graph on Windows <1usa@llenroc.ude.invalid>
        using grep and diff <Chris_sexgod@gmail.com>
    Re: using grep and diff <1usa@llenroc.ude.invalid>
    Re: using grep and diff <jurgenex@hotmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Mon, 09 May 2005 22:22:11 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: Media Lending Library - web based application
Message-Id: <Xns9651BABE24FA5asu1cornelledu@127.0.0.1>

"Michael De Tomaso" <mdetomaso@bak.rr.com> wrote in
news:cDQfe.32883$Au1.27491@tornado.socal.rr.com: 

> -----
> --

You are still not using the correct sig delimiter that would allow my 
newsreader to automatically snip your gaudy signature. The proper sig 
delimiter consists of tow dashes followed by a space.

>   You say tomato and I say tomatoe, Let's call the whole thing off

There is a difference between pronunciation and spelling. See:

http://www.bennetyee.org/http_webster.cgi?isindex=tomatoe&method=exact

-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html


------------------------------

Date: Tue, 10 May 2005 03:14:16 GMT
From: "Michael De Tomaso" <mdetomaso@bak.rr.com>
Subject: Re: Media Lending Library - web based application
Message-Id: <cGVfe.32952$Au1.2143@tornado.socal.rr.com>


"Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message 
news:3ea3vtF1top7U1@individual.net...
> Michael De Tomaso wrote:
>> Q: I'm looking for a PHP-MySQL web solution
>
> Why are you posting about it here?
>
> -- 
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl

Because, one never knows where knowledge may come from ... What if there was 
a solution in perl that someone knew of within this group, etc. etc.

Never-the-less, thanks for ASCII <g>

10/4 M.D. 




------------------------------

Date: Tue, 10 May 2005 03:20:33 GMT
From: "Michael De Tomaso" <mdetomaso@bak.rr.com>
Subject: Re: Media Lending Library - web based application
Message-Id: <5MVfe.32953$Au1.27985@tornado.socal.rr.com>


"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message 
news:Xns9651BABE24FA5asu1cornelledu@127.0.0.1...
> "Michael De Tomaso" <mdetomaso@bak.rr.com> wrote in
> news:cDQfe.32883$Au1.27491@tornado.socal.rr.com:
>
>> -----
>> --
>
> You are still not using the correct sig delimiter that would allow my
> newsreader to automatically snip your gaudy signature. The proper sig
> delimiter consists of tow dashes followed by a space.
>
>>   You say tomato and I say tomatoe, Let's call the whole thing off
>
> There is a difference between pronunciation and spelling. See:
>
> http://www.bennetyee.org/http_webster.cgi?isindex=tomatoe&method=exact
>
> -- 
> A. Sinan Unur <1usa@llenroc.ude.invalid>
> (reverse each component and remove .invalid for email address)
>
> comp.lang.perl.misc guidelines on the WWW:
> http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html

 ... snip your gaudy signature

Believe it or not, beauty is in the eye of the beholder, so please try to 
find another part of the elephant quickly before the heard comes ...

Then again, perhaps your newsread sig delimiter need tweaking maestro, off 
the cuff and off the shelf, I say!

10/4 M.D.

P.S. How many times, will you keep shaking the salt ???

- Agape Michael 




------------------------------

Date: Tue, 10 May 2005 11:59:38 +0930
From: Mr Hyde <pump_yo_brakes@hotgetridofthisbitmail.com>
Subject: Simple error using GD::Graph on Windows
Message-Id: <fa6081dbib317m7o5n07e8t0dtgju44r3i@4ax.com>

Hi guys,

My apologies if this is a simple issue: I've been hacking away at it
for too long and have had no luck finding other people with the same
issue.

I have a very simple script named draw.pl: 

---begin

use GD::Graph::bars;

my $graph = GD::Graph::bars->new(800, 600);

---end

cut down to isolate the issue. When I run the command

perl draw.pl

it comes up with the error

Can't locate object method "new" via package "GD::Image" at
D:/Perl/site/lib/GD/Graph.pm line 286.

I'm on a Windows XP box, running perl 5.8.6 from ActiveState. I've
installed the GD, GDTextUtil, GDGraph and GD-Convert modules via ppm.
There is no GDImage package or anything like that: I fetched them from
http://theoryx5.uwinnipeg.ca/ppms/ because ActiveState didn't have the
GD modules in their repository.

Any ideas? I'm sure it's something pretty simple, however I've only
worked with perl on Linux before.

The overall project is I want to be able to draw charts into a webpage
and include them in a C++ application, however I couldn't find a C++
API that allowed me to write chart images to file so I was going to
implement it in perl and include the perl scripts in the code. This GD
issue, irritatingly, is the first step in this plan. If anyone knows a
more straightforward way to do this, it would be greatly appreciated.

Thanks in advance

H


------------------------------

Date: Tue, 10 May 2005 03:32:41 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: Simple error using GD::Graph on Windows
Message-Id: <Xns9651EF6096B85asu1cornelledu@127.0.0.1>

Mr Hyde <pump_yo_brakes@hotgetridofthisbitmail.com> wrote in 
news:fa6081dbib317m7o5n07e8t0dtgju44r3i@4ax.com:

> Hi guys,
> 
> My apologies if this is a simple issue: I've been hacking away at it
> for too long and have had no luck finding other people with the same
> issue.
> 
> I have a very simple script named draw.pl: 
> 
> ---begin
> 
> use GD::Graph::bars;
> 
> my $graph = GD::Graph::bars->new(800, 600);
> 
> ---end
> 
> cut down to isolate the issue. When I run the command
> 
> perl draw.pl
> 
> it comes up with the error
> 
> Can't locate object method "new" via package "GD::Image" at
> D:/Perl/site/lib/GD/Graph.pm line 286.

You need

use GD::Graph;

before

use GD::Graph::bars;

Sinan

-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html


------------------------------

Date: Tue, 10 May 2005 09:13:04 +1000
From: "Chris" <Chris_sexgod@gmail.com>
Subject: using grep and diff
Message-Id: <427fee72@dnews.tpgi.com.au>

use Shell("grep", "diff");
my $item=diff("file1 file2","");
my $other=grep($item,""^[0-9]"");

How can I get this to work beacuse the grep need the "" around the ^[0-9] or
is it possible to put the diff and grep into a shell script and then have
perl run the script? if so how would it be done.





------------------------------

Date: Mon, 09 May 2005 23:18:25 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: using grep and diff
Message-Id: <Xns9651C4469B1C9asu1cornelledu@127.0.0.1>

"Chris" <Chris_sexgod@gmail.com> wrote in
news:427fee72@dnews.tpgi.com.au: 

> use Shell("grep", "diff");

Are you still insisting on this?

perldoc Shell

perldoc -f system

> my $item=diff("file1 file2","");
> my $other=grep($item,""^[0-9]"");
> 
> How can I get this to work beacuse the grep need the "" around the
> ^[0-9] or is it possible to put the diff and grep into a shell script
> and then have perl run the script? if so how would it be done.

perldoc perlop

See "Quote and Quote-like Operators".

Sinan
-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html


------------------------------

Date: Tue, 10 May 2005 02:00:29 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: using grep and diff
Message-Id: <1BUfe.8347$nX1.2192@trnddc09>

Chris wrote:
> use Shell("grep", "diff");
> my $item=diff("file1 file2","");
> my $other=grep($item,""^[0-9]"");
>
> How can I get this to work beacuse the grep need the "" around the
> ^[0-9]

Is there anything wrong with a simple

    my @foo = `diff file1 file2`;

and then using Perl's own grep() instead of forking out an external process?

> or is it possible to put the diff and grep into a shell script
> and then have perl run the script? if so how would it be done.

Just the same way you would run any other external program from Perl: by 
using system(), backticks, or open() with a pipe.

jue 




------------------------------

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:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#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 V10 Issue 8063
***************************************


home help back first fref pref prev next nref lref last post