RE: "Include" functionality in Perl?

2009-03-23 Thread David Christensen
Chap Harrison wrote: > Now I'm writing a suite of tools that will share a lot of the same > functionality, and the right thing to do is factor that into a single > source in some way. Something equivalent to #include "foo.c" You're ready for Intermediate Perl: http://oreilly.com/catalog/97

Fwd: Require help in perl

2009-03-23 Thread Rajini Naidu
-- Forwarded message -- From: Rajini Naidu Date: Tue, Mar 24, 2009 at 10:12 AM Subject: Re: Require help in perl To: "Chas. Owens" Hi Chas, Thanks for the reply. Please find my answers inlined. > > > > Context : > > > > I am working on displaying load graph for all the da

Re: "Include" functionality in Perl?

2009-03-23 Thread Chap Harrison
On Mar 23, 2009, at 10:47 PM, Chas. Owens wrote: Modules are the way to go. They are not as complex as they seem to you right now. Here is a simple module: [snip] I can't thank you enough for your patience and time putting together that introduction to modules for me. This helps to demys

Re: Require help in perl

2009-03-23 Thread Chas. Owens
On Tue, Mar 24, 2009 at 00:01, Rajini Naidu wrote: > Hi, > > Context : > > I am working on displaying load graph for all the days. > > > > I require a perl module which displays, > > all the days of the week and when I click > > On the particular day, it should go to the > > particular load graph.

Require help in perl

2009-03-23 Thread Rajini Naidu
Hi, Context : I am working on displaying load graph for all the days. I require a perl module which displays, all the days of the week and when I click On the particular day, it should go to the particular load graph. Any help is much appreciated. -Rajini

Re: "Include" functionality in Perl?

2009-03-23 Thread Chas. Owens
On Mon, Mar 23, 2009 at 19:41, Chap Harrison wrote: snip > I suppose what I want is the "module" (I mean, it just *sounds* right), but > from what I've read so far, Perl modules seem to be very advanced, > general-purpose animals - found mainly in CPAN, or in object-oriented > programming. snip M

Re: cpan Audio::File fails

2009-03-23 Thread David Schmidt
Thanks for your help, I installed said package and after that tried to install Catalyst::Plugin::Upload::Audio::File, the module I actually want (it depends on Audio::File) and got a very similiar error. Writing Makefile for Catalyst::Plugin::Upload::Audio::File cp lib/Catalyst/Plugin/Upload/Audi

Re: "Include" functionality in Perl?

2009-03-23 Thread Rodrick Brown
Look at the documentation for Use require Sent from my iPhone On Mar 23, 2009, at 7:41 PM, Chap Harrison wrote: Hi, Until now I've written Perl in a quick-and-dirty fashion - single monolithic .pl file, cutting and pasting from previous code where convenient, etc. Often I won't even wri

"Include" functionality in Perl?

2009-03-23 Thread Chap Harrison
Hi, Until now I've written Perl in a quick-and-dirty fashion - single monolithic .pl file, cutting and pasting from previous code where convenient, etc. Often I won't even write subroutines. (It's not how I generally program, but it has filled the bill well for the kinds of things I've

Re: whatz wrong here ?

2009-03-23 Thread Gunnar Hjalmarsson
igotux igotux wrote: Hi Team, Can someone explain what is wrong happeneing here ? $ perl -e 'use Business::ISBN; $isbn_object = new Business::ISBN('0-59610-206-2');print $isbn->as_string;' Can't call method "as_string" on an undefined value at -e line 1. $ John pointed out one mistake. The ot

Re: whatz wrong here ?

2009-03-23 Thread Chas. Owens
On Mon, Mar 23, 2009 at 09:53, igotux igotux wrote: > Hi Team, > > Can someone explain what is wrong happeneing here ? > > $ perl -e 'use Business::ISBN; $isbn_object = new > Business::ISBN('0-59610-206-2');print $isbn->as_string;' > Can't call method "as_string" on an undefined value at -e line 1

Re: How to implement "tail -f" using perl in both windows and linux !

2009-03-23 Thread Chas. Owens
On Mon, Mar 23, 2009 at 14:16, Amit Saxena wrote: > Is it possible to implement this without using any external modules from > CPAN ? > > Thanks & Regards, > Amit Saxena > The FAQ covers this quite nicely (see below). In general you should use File::Tail[1]. And on UNIX systems, of course, you

Re: whatz wrong here ?

2009-03-23 Thread John W. Krahn
igotux igotux wrote: Hi Team, Hello, Can someone explain what is wrong happeneing here ? $ perl -e 'use Business::ISBN; $isbn_object = new Business::ISBN('0-59610-206-2');print $isbn->as_string;' Can't call method "as_string" on an undefined value at -e line 1. Change: print $isbn->as_str

Re: whatz wrong here ?

2009-03-23 Thread Rodrick Brown
On Mon, Mar 23, 2009 at 9:53 AM, igotux igotux wrote: > Hi Team, > > Can someone explain what is wrong happeneing here ? > > $ perl -e 'use Business::ISBN; $isbn_object = new > Business::ISBN('0-59610-206-2');print $isbn->as_string;' > Can't call method "as_string" on an undefined value at -e line

whatz wrong here ?

2009-03-23 Thread igotux igotux
Hi Team, Can someone explain what is wrong happeneing here ? $ perl -e 'use Business::ISBN; $isbn_object = new Business::ISBN('0-59610-206-2');print $isbn->as_string;' Can't call method "as_string" on an undefined value at -e line 1. $ Thanks, Tux

Re: [PBML] How to implement "tail -f" using perl in both windows and linux !

2009-03-23 Thread Randal L. Schwartz
> "Amit" == Amit Saxena writes: Amit> Is it possible to implement this without using any external modules from Amit> CPAN ? Is it possible? Yes. Reasonable? No. Please state clearly your confusion about being able to include CPAN modules in your workflow. Hint: none of the reasons you come

Re: cpan Audio::File fails

2009-03-23 Thread Owen
> On Sun, Mar 22, 2009 at 8:56 PM, Owen wrote: >>> Hello >>> >>> I repeatedly run into problems when installing modules and I havent >>> yet figured out a way to consistently resolve them. >>> >>> I want to install Audio::File but the tests fail >>> >>> Any help is greatly appreciated. >>> >>> dav

Re: Error: Can't call method "x" without a package or object reference...

2009-03-23 Thread M. Coiffure
Original-Nachricht > Datum: Mon, 16 Mar 2009 12:41:01 -0400 > Von: "Chas. Owens" > An: Jim Gibson > CC: beginners@perl.org > Betreff: Re: Error: Can\'t call method "x" without a package or object > reference... > On Mon, Mar 16, 2009 at 12:23, Jim Gibson wrote: > snip

Re: cpan Audio::File fails

2009-03-23 Thread David Schmidt
On Sun, Mar 22, 2009 at 8:56 PM, Owen wrote: >> Hello >> >> I repeatedly run into problems when installing modules and I havent >> yet figured out a way to consistently resolve them. >> >> I want to install Audio::File but the tests fail >> >> Any help is greatly appreciated. >> >> david >> >> Run

How to implement "tail -f" using perl in both windows and linux !

2009-03-23 Thread Amit Saxena
Is it possible to implement this without using any external modules from CPAN ? Thanks & Regards, Amit Saxena