On 09/15/2011 11:58 AM, Rajeev Prasad wrote:
... turn the inner script into a module of subroutines. ... how would i turn
this into a module which can be called from another script? ...
I'd suggest buying and reading "Intermediate Perl":
http://shop.oreilly.com/product/9780596102067.do
On 9/15/11 Thu Sep 15, 2011 11:58 AM, "Rajeev Prasad"
scribbled:
> Based on earlier suggestion by list-members, I think the best way to run a
> script inside a script is to turn the inner script into a module of
> subroutines.
>
> I have few questions:
>
> given a sample script style:
> ___
Based on earlier suggestion by list-members, I think the best way to run a
script inside a script is to turn the inner script into a module of subroutines.
I have few questions:
given a sample script style:
__
#!/usr/bin/perl -w
use s
I am interested as well. Anyone know of any products out on the market
produced with perldroid?
On Wed, 14 Sep 2011 21:07:31 -0700, Rajeev Prasad wrote:
> thecalledscript.pl needs a filename as argument.
>
> here is how i am calling it from a thecalling_script:
>
>
>
> {
> local @ARGV;
> @ARGV = ("$filename");
> require "thecalledscript.pl";
> }
>
> issue is, the called scri
On 11-09-15 01:07 AM, Jeff Pang wrote:
15 сентября 2011, 08:38 от Rajeev Prasad:
I am now using:
my @outfiles = `thecalledscript.pl $filename`;
i am getting right results.
now question is: is this the best method in terms of efficiency?
Not the good way.
It's better to write the called
On 11-09-14 11:18 PM, Brandon McCaig wrote:
Personally I agree that it's very sloppy to write without capitals.
I find it sloppy for people whose first language is English not to do
their best. Many readers of this list do not have English as a their
first language and the best way to improv
Has anyone used this perldroid, and how does it behave?
http://code.google.com/p/perldroid/
Thanks.
--
Jeff Pang
jeffp...@mail.ru
There is a pm called Math::Combinatorics (
http://search.cpan.org/~allenday/Math-Combinatorics-0.09/lib/Math/Combinatorics.pm
)
It is really helpful to get the combinations without repetition. Then you
just need to process the results to get the output you need, I mean with the
"," and "-".
I hop