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 {
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
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
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
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
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
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
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
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
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>
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 =
> -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
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
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
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
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
>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
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
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
19 matches
Mail list logo