Re: Where to put example script of my CPAN distribution

2014-10-09 Thread Shlomi Fish
Hi Sebastien! On Thu, 9 Oct 2014 23:16:51 +0200 Sebastien Feugere wrote: > You can put a simple example in the POD's "SYNOPSYS" section of your module > as you can find on most of Perl modules (check a random CPAN module to see). > > See : > * http://juerd.nl/site.plp/perlpodtut > * http://

Re: Where to put example script of my CPAN distribution

2014-10-09 Thread Shlomi Fish
Hi Alex, On Thu, 9 Oct 2014 22:52:19 +0200 Alex Becker wrote: > Hi all! > > Similar to my question about the lib folder of a Perl module, I would like > to knoe where one should put example scripts in a CPAN distribution. > > I've seen modules using an eg folder and I'm always tempted to use a

Re: Where to put example script of my CPAN distribution

2014-10-09 Thread Alex
Hm, I was thinking about more sophisticated examples, showing distinct, common use cases. That is, for example, code which is too lengthy to be included in the POD. Maybe something that will run out of the box. I'm looking for a place for code that I consider disturbing when included in the modu

Re: Interactive perl based application who works as per schedule

2014-10-09 Thread Benjamin Fernandis
Thanks, I will follow those. Regards On Fri, Oct 10, 2014 at 3:26 AM, Christopher Brenk < christopherbr...@googlemail.com> wrote: > Hi! > > I just read a article on perltricks.com about every. It's an application > written in Perl,which provides a interface to cron. > > > http://perltricks.com/

Re: Where to put example script of my CPAN distribution

2014-10-09 Thread Sebastien Feugere
You can put a simple example in the POD's "SYNOPSYS" section of your module as you can find on most of Perl modules (check a random CPAN module to see). See : * http://juerd.nl/site.plp/perlpodtut * http://perldoc.perl.org/perlpodstyle.html ~$&bast1 On Thu, Oct 9, 2014 at 10:52 PM, Alex Bec

Where to put example script of my CPAN distribution

2014-10-09 Thread Alex Becker
Hi all! Similar to my question about the lib folder of a Perl module, I would like to knoe where one should put example scripts in a CPAN distribution. I've seen modules using an eg folder and I'm always tempted to use a more mnemonic version: examples. Is there a best practice? I know of TIMTOW

Re: share a variable between files

2014-10-09 Thread Shawn H Corey
On Wed, 8 Oct 2014 21:36:06 +0200 Hans Ginzel wrote: > I want to use one global hash variable for options or configuration > variables like verbose, debug. I don't want to pass them to each > function or to almost each object. package main; our %Opts = ( verbose => 0, debug => 0. ); # yo

Re: Interactive perl based application who works as per schedule

2014-10-09 Thread Christopher Brenk
Hi! I just read a article on perltricks.com about every. It's an application written in Perl,which provides a interface to cron. http://perltricks.com/article/55/2013/12/22/Schedule-jobs-like-a-boss-with-every Maybe you want to use it in your (web-)application. Mit freundlichen Grüßen, Christop

Re: Interactive perl based application who works as per schedule

2014-10-09 Thread John SJ Anderson
On Thu, Oct 9, 2014 at 2:19 AM, Benjamin Fernandis wrote: > Hi, Hi! [ snip ] > Please suggest me for this. I suggest you don't try to re-invent cron. Cron works. Cron is a known quantity. You don't need to re-invent cron. What you need is a way to let other people edit crontab files, with a b

Re: share a variable between files

2014-10-09 Thread Hans Ginzel
On Thu, Oct 09, 2014 at 03:50:02AM +1300, Kent Fredric wrote: First, what are you trying to acheive. Global variables are rarely a good idea, as is sharing variables between files. So the question is, why are you trying to share a variable between files using globals? My suggestion is

Re: Best way to install perl modules

2014-10-09 Thread Shlomi Fish
Hi Benjamin, On Thu, 9 Oct 2014 22:11:41 +1300 Benjamin Fernandis wrote: > Hi Shlomi, > > Thanks. I also feel that centos/rhel perl seems brokern in terms of > dependencies issues and some others. You're welcome. Regards, Shlomi Fish -- -

Re: Best way to install perl modules

2014-10-09 Thread Sam
Take note at least on rehl, you have to run 'yum install perl perl-core' to get a full working perl (If I remember right). --Sam On 10/09/2014 04:11 AM, Benjamin Fernandis wrote: Hi Shlomi, Thanks. I also feel that centos/rhel perl seems brokern in terms of dependencies issues and some others

Interactive perl based application who works as per schedule

2014-10-09 Thread Benjamin Fernandis
Hi, I develop some scripts which we use with OS crontab to schedule to run certain scripts. Scripts are for backup , VM on/off etc... I want to integrate crontab function within perl script to do this. Like a perl based daemon, which accepts date/time and action from users and run according to

Re: Best way to install perl modules

2014-10-09 Thread Benjamin Fernandis
Hi Shlomi, Thanks. I also feel that centos/rhel perl seems brokern in terms of dependencies issues and some others. Regards On Thu, Oct 9, 2014 at 9:12 PM, Shlomi Fish wrote: > Hi Benjamin, > > On Sun, 5 Oct 2014 17:39:46 +1300 > Benjamin Fernandis wrote: > > > Hi Mike, > > > > Thanks for yo

Re: Why to use a lib folder for a CPAN module

2014-10-09 Thread Ken Peng
Module-starter is cool. I always use that for my packages management. First of all, you should not use h2xs, but rather Dist-Zilla or Module-Starter (https://metacpan.org/release/Module-Starter ). -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beg

Re: Why to use a lib folder for a CPAN module

2014-10-09 Thread Shlomi Fish
Hi Alex, On Wed, 8 Oct 2014 19:59:12 +0200 Alex Becker wrote: > Hi! > > When creating the base for a new CPAN module using h2xs (e.g. with the > command h2xs -b 5.10 -XA -n Super::Duper::Module), there is a lib folder > created. First of all, you should not use h2xs, but rather Dist-Zilla or M

Re: Best way to install perl modules

2014-10-09 Thread Shlomi Fish
Hi Benjamin, On Sun, 5 Oct 2014 17:39:46 +1300 Benjamin Fernandis wrote: > Hi Mike, > > Thanks for your kind response. I tried cpanm instead of cpan, but many > times, it does not install require dependencies for module. > > For example, when i was trying to install > cpanm XML::SAX -> it fai