Hi Vance,
This sounds silly, but Why do you need to know? If your operation is as
simple as trying to decide whether or not to insert a comma or other
separator, you can do that with the JOIN command without checking the
individual values.
$result = join(',' ($var1, $var2));
$result will be:
---
test.pm
---
package test;
sub ReturnValue()
{
my $a=10;
return ($a);
}
1; # as a module usually has a return value
---
call.pl
Hello,
Aditi Gupta [EMAIL PROTECTED] asked:
I have a perl code that generates a sequence of values which
i want to plot on y-axis against 1,2,3... on x-axis. I've
read that GD::Graph could be used for it. But I've never done
modular programming. Also, I don't know how to install
On Wed, 2005-09-28 at 08:10 +0200, Thomas Bätzler wrote:
Hello,
Aditi Gupta [EMAIL PROTECTED] asked:
I have a perl code that generates a sequence of values which
i want to plot on y-axis against 1,2,3... on x-axis. I've
read that GD::Graph could be used for it. But I've never done
Hi there!
I have a lot of experience in programming, but WHAT command do I use for
checking if a file exists... Have searched google, but can't seem to find
any good answers...
/G
http://www.varupiraten.se/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
-e filename
Regards,
Ganesh
[EMAIL PROTECTED] wrote:
Hi there!
I have a lot of experience in programming, but WHAT command do I use for
checking if a file exists... Have searched google, but can't seem to find
any good answers...
/G
http://www.varupiraten.se/
--
To unsubscribe,
(Bringing this back to the list)
On Wednesday 28 September 2005 21:09, you wrote:
I don't get this to work. What am I doing wrong? Must the path be
included? My program is like this:
my $program = ls;
if (-e $program) {
#execute program
}
yes, it must include the full path:
foreach
Chris Devers wrote:
while ( $tries 10 ) {
my $result = do_something_risky();
break if ( $result != 0 );
last, not break
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
Any idea how to install Spreadsheet::ParseExcel?
I've downed loaded the required modules, but
it still does not seem to work.
Are there clear instructions anywhere?
tia,
dk
-Original Message-
From: [EMAIL PROTECTED]
Sent: Sep 28, 2005 11:08 AM
To: [EMAIL PROTECTED]
Subject:
On Wed, 28 Sep 2005 [EMAIL PROTECTED] wrote:
Any idea how to install Spreadsheet::ParseExcel?
Yes.
I've downed loaded the required modules, but
it still does not seem to work.
Bummer.
Are there clear instructions anywhere?
Yes.
--
Chris Devers
9wkö¦QC½lD
--
To unsubscribe,
Just something for to start looking for info on the module
http://search.cpan.org/~kwitknr/Spreadsheet-ParseExcel-0.2602/ParseExcel.pm
Armando Gomez Guajardo
Process Engineer
Work Ph 956 547 6438
Beeper956 768 4070
-Original Message-
From: Chris Devers [mailto:[EMAIL
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 12:08 PM
To: beginners@perl.org
Subject: Re: WELCOME to beginners@perl.org
Any idea how to install Spreadsheet::ParseExcel?
Just for giggles, I'm gonna assume that you're
On Sep 27, Bryan R Harris said:
2*(3+2) == 10
2*dog == 2*dog
mysquarefunction(2) == 4
3*mysquarefunction(2) == 12
some guy == some guy
Here's a solution that works for the cases you've provided:
sub try_eval {
local $@;
my $warning;
local $SIG{__WARN__} = sub {
On 9/28/05, Ryan Frantz [EMAIL PROTECTED] wrote:
Just for giggles, I'm gonna assume that you're using PPM (you gave
nothing else to go on)...
I've only installed this particular module using ActiveState's 'ppm'
myself; it seems to have problems with the '::' in module names. If ppm
can't
Wiggins d'Anconia [Wd], on Tuesday, September 27, 2005 at 17:51
(-0600) contributed this to our collective wisdom:
Wd You haven't shown us what you have tried, or where it failed, only
Wd suggested something about eval and recursive subs, which neither of
Wd which should be pertinent here. Show
When I do this:
#!/usr/bin/perl -w
use strict;
use Data::Dumper;
my $grades = {tom= 50, sally= 60, harry = 70};
print Dumper($grades) ;
And perl gives me this:
$VAR1 = {
'harry' = 70,
'sally' = 60,
'tom' = 50
};
QUESTION: Does this mean that $grades is
Hello all. Please let me know if this is a good place for my questions.
I am trying to read a log file and get a list of how many times an IP address
get blocked each hour by category PO. An example line in the log with a block
is:
-
[2005-09-28 10:05:03 -7:00] 127.0.0.1
On Sep 28, FamiLink Admin said:
I am trying to read a log file and get a list of how many times an IP
address get blocked each hour by category PO. An example line in the log
with a block is:
-
[2005-09-28 10:05:03 -7:00] 127.0.0.1 71.32.59.249 216.163.137.3 -
Hi,
first, I want to thank all who viewed my first question days before, especially to
those who took time to answer it. It was trenmendous encouragement for a beginner perlee like me.
Thanks again.
My question:
Is there a way to call or maybe get the # of
ZHAO, BING wrote:
Hi,
first, I want to thank all who viewed my first question days
before, especially to those who took time to answer it. It was
trenmendous encouragement for a beginner perlee like me. Thanks again.
My question:
Is there a way to call or
Jeff ,
Thanks for all your help! This is what I have now (below and this time the
whole thing): I think I have included all that you talked about plus
others:
The sub scanlog does write the information to the files but it does not
return anything back to the main program and I also get
FamiLink Admin wrote:
Jeff ,
Thanks for all your help! This is what I have now (below and this
time the whole thing): I think I have included all that you talked
about plus others:
The sub scanlog does write the information to the files but it does
not return anything back to the main
I am only concerned about the IP. The rest is just to verify the data for
now. What code would I use to key the $IP in to hash for counting?. Most
of the IP's are not static but are from broadband and don't change too
often. An example log is:
-
[2005-09-28 10:05:03 -7:00]
FamiLink Admin wrote:
I am only concerned about the IP. The rest is just to verify the
data for now. What code would I use to key the $IP in to hash for
counting?. Most of the IP's are not static but are from broadband
and don't change too often. An example log is:
-
24 matches
Mail list logo