On Fri, 2008-10-10 at 20:11 +0100, Rob Dixon wrote:
> Mr. Shawn H. Corey wrote:
> > On Fri, 2008-10-10 at 15:14 +0100, Rob Dixon wrote:
> >> Mr. Shawn H. Corey wrote:
> >>>
> >>> Don't use prototypes. When you need them, you really need them. That's
> >>> why they're there. But ( 1 - 1e-42 ) per
Mr. Shawn H. Corey wrote:
> On Fri, 2008-10-10 at 15:14 +0100, Rob Dixon wrote:
>> Mr. Shawn H. Corey wrote:
>>>
>>> Don't use prototypes. When you need them, you really need them. That's
>>> why they're there. But ( 1 - 1e-42 ) percent of the time you don't need
>>> them.
>>
>> So you need them
Richard Lee wrote:
>
> can't you do below??
>
> sub criteria {
>return qw/ 1,3,5,7,9 /;
> }
>
> I was going to do
>
> sub criteria {
> my @array = qw/1,3,5,7,9/;
> }
>
> but was wondering if I can do without if i was calling the sub like this
>
>
> my @array_result = criteria()
Mr. Shawn H. Corey wrote:
Don't use commas inside a qw
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent = 1;
$Data::Dumper::Maxdepth = 0;
sub criteria {
return qw/ 1 3 5 7 9 /;
}
my @array_result = criteria();
print Dump
On Fri, 2008-10-10 at 14:06 -0400, Richard Lee wrote:
> can't you do below??
>
>
> sub criteria {
>return qw/ 1,3,5,7,9 /;
> }
>
> I was going to do
>
> sub criteria {
> my @array = qw/1,3,5,7,9/;
> }
>
> but was wondering if I can do without if i was calling the sub like this
>
Richard Lee wrote:
can't you do below??
sub criteria {
return qw/ 1,3,5,7,9 /;
}
I was going to do
sub criteria {
my @array = qw/1,3,5,7,9/;
}
but was wondering if I can do without if i was calling the sub like this
my @array_result = criteria();
??
actually qw/ 1 3 5 7 9/; i
can't you do below??
sub criteria {
return qw/ 1,3,5,7,9 /;
}
I was going to do
sub criteria {
my @array = qw/1,3,5,7,9/;
}
but was wondering if I can do without if i was calling the sub like this
my @array_result = criteria();
??
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Sharan Basappa wrote:
>
> I am trying to process a code for some processing.
> The code looks like
>
> keywordx ...
>
> keywordy identifier_a
> some text
> endkeywordy
>
> keywordz identifier_a
> some text
> endkeywordz
>
> endkeywordx
>
>>From this, I would like to extract te
These are system installation. Can you tell me upto what directory
should I be including use lib path?
Regards
On Fri, Oct 10, 2008 at 9:10 PM, Jeff Pang <[EMAIL PROTECTED]> wrote:
>> Message du 10/10/08 17:32
>> De : "Sharan Basappa"
>> A : "Jeff Pang"
>> Copie à : "Perl Beginners"
>> Objet : Re
Hi,
I am trying to process a code for some processing.
The code looks like
keywordx ...
keywordy identifier_a
some text
endkeywordy
keywordz identifier_a
some text
endkeywordz
endkeywordx
>From this, I would like to extract text starting from keywordy and endkeywordy.
Is using
Sharan Basappa wrote:
>
> Ok, so if I understand you correctly this is what I have to do
>
> 1) install module C in a/b/c directory (for example)
>
> 2) install module D in a/b/d directory
>
> 3) copy the .pm files installed under a/b/c and a/b/d to a/b/my_lib
>
> 4) include a/b/my_lib in perl
Sharan Basappa wrote:
>
> I have 2 permute and Text-balanced modules installed. They are in the path:
> "/home//local/perl/"
>
> I tried an example for permute by including the module path as:
> "/home/user/local/perl/perm_install/lib/perl5/site_perl"
>
> Now this seems to go through.
>
> For T
> Message du 10/10/08 17:32
> De : "Sharan Basappa"
> A : "Jeff Pang"
> Copie à : "Perl Beginners"
> Objet : Re: add module path
>
>
> Ok, so if I understand you correctly this is what I have to do
>
> 1) install module C in a/b/c directory (for example)
>
> 2) install module D in a/b/d directory
>
Ok, so if I understand you correctly this is what I have to do
1) install module C in a/b/c directory (for example)
2) install module D in a/b/d directory
3) copy the .pm files installed under a/b/c and a/b/d to a/b/my_lib
4) include a/b/my_lib in perl code
So you are also saying that the path
> Message du 10/10/08 17:13
> De : "Sharan Basappa"
> For example, the text-balanced path looks somewhat like -
> /home/user/local/perl/balanced_install
> with lib and share directories in this path. So do I include
> 1) /home/user/local/perl/balanced_install?
> 2) /home/user/local/perl/balanced_i
2008/10/10 Jeff Pang <[EMAIL PROTECTED]>:
>
>> Message du 10/10/08 16:49
>> De : "Sharan Basappa"
>> A : "Perl Beginners"
>> Copie à :
>> Objet : add module path
>>
>>
>> Hi,
>>
>> I have 2 permute and Text-balanced modules installed. They are in the
>> path:
>> "/home//local/perl/"
>>
>
>
> consid
> Message du 10/10/08 16:49
> De : "Sharan Basappa"
> A : "Perl Beginners"
> Copie à :
> Objet : add module path
>
>
> Hi,
>
> I have 2 permute and Text-balanced modules installed. They are in the path:
> "/home//local/perl/"
>
consider 'use lib' at the script's begin:
use lib '/home/sth/local
Hi,
I have 2 permute and Text-balanced modules installed. They are in the path:
"/home//local/perl/"
I tried an example for permute by including the module path as:
"/home/user/local/perl/perm_install/lib/perl5/site_perl"
Now this seems to go through.
For Text-balanced, I dont find similar path
On Fri, 2008-10-10 at 15:14 +0100, Rob Dixon wrote:
> Mr. Shawn H. Corey wrote:
> >
> > Don't use prototypes. When you need them, you really need them. That's
> > why they're there. But ( 1 - 1e-42 ) percent of the time you don't need
> > them.
>
> So you need them just over 99% of the time? :
Mr. Shawn H. Corey wrote:
>
> Don't use prototypes. When you need them, you really need them. That's
> why they're there. But ( 1 - 1e-42 ) percent of the time you don't need
> them.
So you need them just over 99% of the time? :D
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
On Fri, 2008-10-10 at 14:36 +0100, Dermot wrote:
> 2008/10/10 Jeff Pang <[EMAIL PROTECTED]>:
> >> Message du 10/10/08 13:57
> >> De : "Mr. Shawn H. Corey"
> >> --
> >> Just my 0.0002 million dollars worth,
> >> Shawn
> >>
> >> Linux is obsolete.
> >> -- Andrew Tanenbaum
> >>
> >
> >
> > Shawn
2008/10/10 Jeff Pang <[EMAIL PROTECTED]>:
>> Message du 10/10/08 13:57
>> De : "Mr. Shawn H. Corey"
>> --
>> Just my 0.0002 million dollars worth,
>> Shawn
>>
>> Linux is obsolete.
>> -- Andrew Tanenbaum
>>
>
>
> Shawn, I just ask out of curiosity, your signature said:
>
> "Linux is obsolete.
> Message du 10/10/08 13:57
> De : "Mr. Shawn H. Corey"
> --
> Just my 0.0002 million dollars worth,
> Shawn
>
> Linux is obsolete.
> -- Andrew Tanenbaum
>
Shawn, I just ask out of curiosity, your signature said:
"Linux is obsolete."
So what's a popular OS at this time?
For myself I use L
On Fri, 2008-10-10 at 13:31 +0100, Deviloper wrote:
> I either don´t like prototyping in perl,
> but I hate user who don´t read what my methode or function want much
> more then prototypes. (This error cost me SO much time... every day
> there calls somebody... "your sub don´t work"... only because
I either don´t like prototyping in perl,
but I hate user who don´t read what my methode or function want much more then
prototypes. (This error cost me SO much time... every day there calls
somebody... "your sub don´t work"... only because he/she passes $ $ instead of
$ $ $.)
(I don´t like writi
On Fri, 2008-10-10 at 13:27 +0200, Dr.Ruud wrote:
> Deviloper schreef:
>
> > while ($i < 0.8) {
> > #do something which changes $i
> > }
>
> Huh? That can easily still do one too much.
Yes, that's the problem the OP was complaining about.
Try:
#!/usr/bin/perl
use strict;
use warnings;
my
Deviloper schreef:
> while ($i < 0.8) {
> #do something which changes $i
> }
Huh? That can easily still do one too much.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Deviloper wrote:
Hi there,
Hello,
have a look at this example:
#!/usr/local/bin/perl
use strict;
use warnings;
my $a_hash = { hund => "Dogge",
katze => "Perser",
obst => "Banane"
X-post alert: clpm.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
or to be nearer to what he/she wanted to do just:
while ($i < 0.8) {
#do something which changes $i
}
"Dr.Ruud" <[EMAIL PROTECTED]> hat am 10. Oktober 2008 um 11:27 geschrieben:
> Rob Dixon schreef:
> > anilfunde
>
> >> for($i=0;$i<0.8;$i=$i+0.1)
> >> {
> >> print "$i\n";
> >>
Hi there,
have a look at this example:
#!/usr/local/bin/perl
use strict;
use warnings;
my $a_hash = { hund => "Dogge",
katze => "Perser",
obst => "Banane"
};
sub test($){
my $x = shift;
print
Rob Dixon schreef:
> anilfunde
>> for($i=0;$i<0.8;$i=$i+0.1)
>> {
>> print "$i\n";
>> }
>
> The correct way to write this is
>
> for (0 .. 8) {
> my $i = $_/8;
> print "$i\n";
> }
YM /10.
Alternative:
for my $p (0 .. 8) {
printf "%.1f\n", $p / 10;
}
My CPAN shell seems wrong.
When I tried to install modules, it got failed.
The info is below.
What wrong with this? Thanks.
cpan> install Mail::Send
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 08 Oct 2008 22:26:52 GMT
Running install for module Mail
[EMAIL PROTECTED] schreef:
> Hi All, i found this as a Bug in Perl
nO, yoU found this as a buG in yoU.
> isn't it a Joke
Indeed, it isn't.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.
Rob Dixon schreef:
> print "@array\n";
>
> will output the elements separated with spaces by default. To change
> the separator to a comma you can write
>
> local $" = ',';
> print "@array\n";
Please present code like that with enclosing curlies, to limit the scope
of the local $".
--
Aff
Have a look at CPAN, get the two XML's content into two arrays, and diff the
arrays with someway (ie, Array::Diff).
> Message du 10/10/08 09:18
> De : [EMAIL PROTECTED]
> A : beginners@perl.org
> Copie à :
> Objet : how to compare 2 xml files??
>
>
> hi,
> Like in topic.
> How to comapre xml_file
Hai All,
I am using Biblio-Citation-Parser for doing this task. It fairly gives
the required output.
1) Is there any way we can assign the templates to be matched. I.e.
out of 400 templates, I will define only 8 to 9 templates to be
matched so that the matching will be accurate.
2) Is there any
Hi Manasi,
Manasi Bopardikar wrote:
Hi,
I am using cgi perl and wondered if there is any way to refresh a
table(element ) on a web page without refreshing the entire page.
I don't know if there is a Perl solution to your problem (I don't
believe there is); instead what you should consi
Hi,
I am using cgi perl and wondered if there is any way to refresh a
table(element ) on a web page without refreshing the entire page.
This is an HTML tag to refresh a page on click of button.--
Thanks and Regards,
Manasi Bopardikar|s/w Engineer|Persistent SystemsLtd
(+91)(020)(
[EMAIL PROTECTED] пишет:
hi,
Like in topic.
How to comapre xml_files which I create with data from database.
I'm comparing table structure and need to know in which table is
missing column or the data of column is wrong.
In the output I want to have the full information about the
difference.of t
Hi I have a perl Script taking an input as argument from command line
and based on that performing the compiling operations for my project.
How can write the same in Makefile.
#!/usr/local/bin/perl
print ("enter the name of model you want to test\n");
$abc = ;
chomp($abc);
$model = $abc;
if(-e $
hi,
Like in topic.
How to comapre xml_files which I create with data from database.
I'm comparing table structure and need to know in which table is
missing column or the data of column is wrong.
In the output I want to have the full information about the
difference.of this two files.
Have you got
42 matches
Mail list logo