Re: Question about a class

2007-03-19 Thread Chas Owens
On 3/19/07, Jm lists <[EMAIL PROTECTED]> wrote: Hello, Consider this script (coming from Randal's book): { package Animal; sub speak { my $class = shift; print "a $class goes ", $class->sound, "!\n"; } } { package Mouse; @ISA = qw(Animal); sub sound { "squeak" } sub speak {

Re: Question about a class

2007-03-19 Thread Madan Kumar Nath
Hi Jm, 1. If you use $class->speak(@_), the programe will go to infineite loop. because of recursive call. 2. The example is to demostrate, how to call the method of a class immediately up in the class hirarchy. Hope it helps Madan Jm lists wrote: Hello, Consi

Re: Dealing with ar archives

2007-03-19 Thread Igor Sutton Lopes
On 2007/03/19, at 01:11, Ana Saiz García wrote: Exactly that ^_^ In addition, to use that simple module I must install 6 more or so, and this is too much for the single and simple operation I want to do. I still can't see the problem. If it uses a lot of other CPAN modules, that is a Good T

Re: STDOUT

2007-03-19 Thread hOURS
Hi, I wrote to the list with this issue before and got some suggestions, but nothing worked. I ended up shelving it, but now would like to try again. I have a thousand scripts I'd like to check for syntax errors. (Long story that.) All I need is a list of which ones have er

Re: STDOUT

2007-03-19 Thread Jenda Krynicky
From: hOURS <[EMAIL PROTECTED]> > Hi, > I wrote to the list with this issue before and got some suggestions, > but nothing worked. I ended up shelving it, but now would like to try again. > I have a thousand scripts I'd like to check for syntax errors. (Long > story that.) A

Re: STDOUT

2007-03-19 Thread hOURS
Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: hOURS > Hi, > I wrote to the list with this issue before and got some suggestions, but > nothing worked. I ended up shelving it, but now would like to try again. > I have a thousand scripts I'd like to check for syntax errors. (Long story

template toolkit

2007-03-19 Thread oryann9
All, Is the Perl template toolkit a popular tool to use for mid tier to senior Perl developers? Reason I ask is because from the description it states "And because it has its own simple templating language, templates can be written and edited by people who don't know Perl." Among the many

Re: Dealing with ar archives

2007-03-19 Thread Ana Saiz García
On 19/03/07, Igor Sutton Lopes <[EMAIL PROTECTED]> wrote: On 2007/03/19, at 01:11, Ana Saiz García wrote: > Exactly that ^_^ In addition, to use that simple module I must install > 6 more or so, and this is too much for the single and simple operation > I want to do. I still can't see the prob

How do I create this string?

2007-03-19 Thread Travis Thornhill
I need to make strings of variable length for testing inputs. The strings can contain any letter, say 'a', and I need to be able to create the string with 255, 256 or any length. Is there a quick and easy way to do this with perl? - Never miss an email

RE: How do I create this string?

2007-03-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Not tested: while ( 1 ) { printf "Please enter length of variable(ex:exit out): "; chomp(my $MyInp = ); last if ( $MyInp =~ /^ex$/i ); if ( $MyInp !~ /\d+/ ) { print "Expecting only digits, but got <$MyInp>

Re: How do I create this string?

2007-03-19 Thread John W. Krahn
Travis Thornhill wrote: > I need to make strings of variable length for testing inputs. > The strings can contain any letter, say 'a', and I need to be able to > create the string with 255, 256 or any length. > > Is there a quick and easy way to do this with perl? my $letter = 'a'; my $length =

RE: STDOUT

2007-03-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: hOURS [mailto:[EMAIL PROTECTED] > Sent: Monday, March 19, 2007 13:17 > To: Perl Beginners > Subject: Re: STDOUT > > > > Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: hOURS > > Hi, > > I wrote to the list with this issue before and got some > sugge

windows command in perl

2007-03-19 Thread Sayed, Irfan \(Irfan\)
Hi all, I am executing following command on windows platform in perl programme. my $cmd1 = `set USERNAME`; but I am facing following error. Z:\>ccperl rec_bl.pl 'USERNAME' is not recognized as an internal or external command, operable program or batch file. Does anybody help in how to exec

Re: windows command in perl

2007-03-19 Thread Chas Owens
On 3/20/07, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote: Hi all, I am executing following command on windows platform in perl programme. my $cmd1 = `set USERNAME`; but I am facing following error. Z:\>ccperl rec_bl.pl 'USERNAME' is not recognized as an internal or external command, operable

Tweaking a Script

2007-03-19 Thread Stan Cooper
Hi; I need to add a line that calls a shell script to a perl script I found. Is it as simple as just adding the path of the script? else /usr/local/bin/my_script.sh Or is there some special incantation? TIA, Stan2 - Now that's room service! Choose from over

Re: Tweaking a Script

2007-03-19 Thread Chas Owens
On 3/20/07, Stan Cooper <[EMAIL PROTECTED]> wrote: Hi; I need to add a line that calls a shell script to a perl script I found. Is it as simple as just adding the path of the script? else /usr/local/bin/my_script.sh Or is there some special incantation? TIA, Stan2 There are several metho

Re: Tweaking a Script

2007-03-19 Thread Jeff Pang
>Hi; >I need to add a line that calls a shell script to a perl script I found. Is it >as simple as just adding the path of the script? > >else >/usr/local/bin/my_script.sh > Hello, You could write it like: system "/usr/local/bin/my_script.sh"; If you expect the shell script's output,then

Re: How do I create this string?

2007-03-19 Thread Flemming Greve Skovengaard
Travis Thornhill wrote: I need to make strings of variable length for testing inputs. The strings can contain any letter, say 'a', and I need to be able to create the string with 255, 256 or any length. Is there a quick and easy way to do this with perl? ... This will generate a st

Re: How do I create this string?

2007-03-19 Thread John W. Krahn
Flemming Greve Skovengaard wrote: > Travis Thornhill wrote: >> I need to make strings of variable length for testing inputs. >> The strings can contain any letter, say 'a', and I need to be able >> to create the string with >> 255, 256 or any length. >> Is there a quick and easy way to do