Brian,
I don't think you can differentiate between what came out-of-the-box
and what you had installed on your own as there isn't an XML tag or
attribute that I am aware of that would capture this information in
PPM.xml file.
That much said, this is what I think you are looking out f
Replace,
$time = ($time * 2.0);
to
$time = sprintf("%0.2f", ($time * 2));
That should do it.
perldoc -f sprintf
-- Rex
On 8/17/05, Vineet Pande <[EMAIL PROTECTED]> wrote:
> Hi:
>
> In the following piece of script, I would like to convert the $time after *
> b
If you are implying right alignment, then just put a minus sign before
the formatting instruction.
$time = sprintf("%-0.2f", ($time * 2));
-- Rex
On 8/17/05, Vineet Pande <[EMAIL PROTECTED]> wrote:
> I mean:
>
> 0.0 0.00
> 0.4 60.37
> 0.8106.29
If you are in Windows OS, then you can code your program to be a
Windows native service. You nee to have Win32::Daemon and take a look
at this URL:
http://www.roth.net/perl/Daemon/
Cheers,
Rex
On 8/17/05, Michael Gale <[EMAIL PROTECTED]> wrote:
> Hello,
>
>In the past
In Perl,
my($array, @array, %array);
open(ARRAY, ">file.txt");
opendir(ARRAY, "C:/DIR");
are all different. They are not the same.
Thanks,
Rex
On 8/19/05, Dave Adams <[EMAIL PROTECTED]> wrote:
> Dan,
>
> It appears the $apple->[2] and $apple[2] are no
t ceil($n); # this will print 4.
Cheers,
Rex
On 8/21/05, Bryan Harris <[EMAIL PROTECTED]> wrote:
>
>
> Neat, I like it!
>
> Is this the best way to do simple integer round-ups? E.g. 3.2 -> 4?
>
> I've been using:
>
> $nines = 1 - 1/1e10;
> $value =
For logging, why don't you try log4perl?
http://log4perl.sourceforge.net/
Cheers,
Rex
On 9/4/05, Peter Rabbitson <[EMAIL PROTECTED]> wrote:
>
> Hello list,
> Is there a clean and elegant way to make a subroutine available to all
> namespaces/packages? Something like
In order to ramp up quickly on the nitty-gritty of Regular Expressions
in Perl, what will be a good book to start with? I do have moderate
familiarity with RegEx, but am still not using all that Perl's RegEx
engine has to offer. Hence the question.
Thanks,
Rex
--
To unsubscribe, e-mail: [
t seems to be the
norm in CPAN? When I tried to do "install DBI", it bombed on a fatal
error saying the DLL cannot be installed or something like that. Is
this how I install a new module?
Please help.
Thanks,
Rex
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
perldoc perllocal at Cygwin works. It provides me the list of modules
installed.
On Fri, Dec 19, 2008 at 11:07 AM, Rex wrote:
> Pardon me, if this has been already raised. I have experience in
> ActivePerl from Activestate. However, I have a Cygwin for Windows,
> where Perl 5.10 is ins
.
So, will it be safe to infer that this module hasn't been tested
successfully for Cygwin Perl?
Thanks,
Rex
On Fri, Dec 19, 2008 at 11:45 AM, Chas. Owens wrote:
> On Fri, Dec 19, 2008 at 11:07, Rex wrote:
>> Pardon me, if this has been already raised. I have experience in
select sysdate from dual;
SYSDATE
-
19-DEC-08
Thanks,
Rex
On Fri, Dec 19, 2008 at 2:14 PM, Chas. Owens wrote:
> On Fri, Dec 19, 2008 at 14:04, Rex wrote:
>> Thanks a lot for a lucid response, Chas. Following your advice, I was
>> able to successfully install DBI on my work la
Please visit http://www.activestate.com . They have PerlApp and PerlCOM
tools as part of the Perl Development Kit.
With PerlApp you can generate free running EXEs and with PerlCOM you can
create DLLs which can be invoked by any VB/VBScript/JScript code.
- Original Message -
From: "Mich
Hi,
I am trying to install the MAIL::tools module in windows 2000. According to
the INSTALL
file the steps to installation are:
perl Makefile.PL
make
make test
make install
I was able to run the first command, but when I type 'make' in the dos
prompt
i get this error:
'make' is
ession Variable Name is }.$key.qq{
which has a stored value of =>
}.$Session->Contents->Item($key)."");
}
That would get you the list of session variables as well as its values.
Cheers,
Rex
- Original Message -
From: "Rahul Garg" <[EMAIL PROTECTED]>
Will this be sufficient?
my($array) = ['a=1', 'b=2', 'c=3', 'd=4'];
my($str) = 'd=43';
my($index) = indexOf($array,$str);
print ("Index of $str in the array is = $index");
sub indexOf{
my($arr) = shift;
my($val) = shift;
for(my $i=0; $i < @{$arr}; $i++){
return($i) if($arr->[$i] eq $val);
But that would work only for key=value type of situations.
If @list = (2,'a',100,'cat')
then you cannot rely on Hashes because order cannot be preserved. At such
instances, you might need to code a custom function as shown in my previous
mail.
Right?
-- Rex
- Origina
Use Crypt::RC4 module, to encrypt and decrypt values. It uses the RC4
Symmetric encryption which is fairly robust. It depends on a symmetric key
which you will use for encryption as well as decryption. You can download
the latest Crypt::RC4 module through PPM. (Activestate Perl).
http://aspn.act
Try Archive::Zip (to zip it into Zip format) or Compress:Zlib (GZip or
deflate/inflate compression schemes).
They are available from http://www.activestate.com and please use your PPM
to download the same.
- Original Message -
From: "Zhe Hong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
You can take a look at this beautiful article:
http://www-106.ibm.com/developerworks/library/l-pexcel/
-- Rex S. Arul
- Original Message -
From: "Kelvin Ng Chee Hoong" <[EMAIL PROTECTED]>
To: "nafiseh saberi" <[EMAIL PROTECTED]>
Cc: "perl_beginn
Hello Friends,
Without resorting to any additional lists/arrays, how can I maintain the
order of the keys in a hash? Is there a "package/module" that would redress
this issue?
I would like to access data, the same order I added to the hash in the first
instance.
Thanks,
Rex
oth are not going to lose
their already sorted order from the database. Please shed some ideas as to
how this is would be construed as mismodelling.
Thanks in advance,
--Rex
- Original Message -
From: "Peter Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "R
$val=undef; #undef is more like a value here.
undef ($objRS); #undef is more of a function here
undef(%hash); #and here too
-- Rex
- Original Message -
From: <[EMAIL PROTECTED]>
To: "nafiseh saberi" <[EMAIL PROTECTED]&
If you declare the pragma, "use strictl" then you should declare all
variables as my:
my($im, $red, $blue);
- Original Message -
From: "tom poe" <[EMAIL PROTECTED]>
To: "zentara" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 7:10 PM
Subject: Re: no luck pie c
Daniel,
If your OS is Windows, then try the Perl Development Kit of Activestate
Corp, which enables you to produce EXEs, DLLs, etc
http://www.activestate.com
- Original Message -
From: "Daniel Falkenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 8:28 P
Daniel,
If your OS is Windows, then try the Perl Development Kit of Activestate
Corp, which enables you to produce EXEs, DLLs, etc
http://www.activestate.com
- Original Message -
From: "Daniel Falkenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 8:28 P
Daniel,
If your OS is Windows, then try the Perl Development Kit of Activestate
Corp, which enables you to produce EXEs, DLLs, etc
http://www.activestate.com
- Original Message -
From: "Daniel Falkenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 8:28 P
Daniel,
If your OS is Windows, then try the Perl Development Kit of Activestate
Corp, which enables you to produce EXEs, DLLs, etc
http://www.activestate.com
- Original Message -
From: "Daniel Falkenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 8:28 P
Daniel,
If your OS is Windows, then try the Perl Development Kit of Activestate
Corp, which enables you to produce EXEs, DLLs, etc
http://www.activestate.com
- Original Message -
From: "Daniel Falkenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 8:28 P
Dear Friends,
My email server has gone crazy, as it is keeping on sending an email that I
had sent just once! I am very sorry for a spam that is happening without
my knowledge and control.
Sorry,
Rex
- Original Message -
From: "Rex Arul" <[EMAIL PROTECTED]>
To: &q
idates are alphabetically
the same, -1 if one is alphabetically lesser than the succeeding element and
1 if the preceding element is alphabetically greater than the succeeding
element.
- Rex
- Original Message -
From: "nafiseh saberi" <[EMAIL PROTECTED]>
To: "perl&qu
Stefan,
The 'Schwartzian Transform' usually is a good approach for such cases. It is
not very difficult as it seems to be (Thanks to http://5sigma.com of Joseph
Hall). Please follow the comments and it should be pretty straightforward:
Cheers,
Rex
#!/usr/bin/perl
use strict;
my(@l
Friends,
How can I persist values across method calls, without using Global
Variables? IS there kind of "static" variables and if so can any of you
provide a simple code example to prove the point?
Thanks in advance,
Rex
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
Perl Script.
-- Rex
- Original Message -
From: "Martin Pfeffer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 09, 2001 4:11 AM
Subject: Activ state Perl Dev Kit
> does anywone has experience about Activ state Perl Dev Kit?
>
>
> -
well as Win32::NetAdmin and Win32API::Net interface with Windows NT
Lanmanager.
Just go through the documentation of Win32 and Win32API to find lots of
interesting things that you can do.
Thanks,
Rex
- Original Message -
From: "Abhra Debroy" <[EMAIL PROTECTED]>
To: &qu
Andrea,
Even if you do have commified strings, it should still work. Right?
###
use strict;
my(@array, @unique, %seen);
$array[0] = ["apples","oranges","plums", "Arul, Rex", "Holstein, Andrea",
"Clinton,Bil
Please try the Perl Development Kit of Activestate. You can create
freestanding EXEs, DLLs, Windows NT Services, etc.
http://www.activestate.com/Products/Perl_Dev_Kit/
-- Rex
Glenn Meyer wrote:
>I have written a perl app that I use on several servers I support. They all
>have Activ
tag this kind of
inadvertent behavior as unacceptable?
When I use, 'use warnings' pragma, it warns me. Is there anything that
would probably raise a compile/run-time error and fail at redeclarations
of variables in Perl?
-- Rex
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
use Win32;
use Win32API;
use Win32::OLE;
use Win32::Lanman;
use Win32::NetAdmin;
use Win32::AdminMisc;
You need to install the last 3 modules via ppm, whereas the first three
come by default installation of perl on Win32 (Activestate Perl).
-- Rex
nerd wrote:
>hi all,
>
>I want
[EMAIL PROTECTED] is a very good mailing
list.
http://aspn.activestate.com/ASPN/Mail/ is the site you ought to go to
register yourself.
-- Rex
Daniel Falkenberg wrote:
>Hi all,
>
>I am really sorry to bother all of you with this one. But I am about to
>start working on a new p
, implicitly the
"import" method of those modules are invoked transparently. I did verify
this by opening the strict.pm and warnings.pm and both of them had the
"import" function.
Please correct me, if I am wrong.
Thanks,
Rex
>.
>
>>> package Defau
power of packages/modules (with exporting variables,
subroutines etc)
c) use object oriented approach with a performance penalty of 20-50% as
claimed by Damian?
Thanks,
Rex
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Or even just putting "$count" as the last statement should do the trick as
that is the last scalar assignment in a subroutine that automatically gets
returned.
-- Rex
- Original Message -
From: "Jos I. Boumans" <[EMAIL PROTECTED]>
To: "MerryChristmas
Quick Reply: If you are in Windows OS, this would work:
perl -e "use Win32; print Win32::GetCwd();"
- Original Message -
From: "Pradeep Sethi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 8:23 PM
Subject: get current dir
> what is the function in perl
This is what I get. Is there a function Cwd?
C:\WINDOWS>perldoc -f Cwd
No documentation for perl function `Cwd' found
- Original Message -
From: "Michael Fowler" <[EMAIL PROTECTED]>
To: "Pradeep Sethi" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 8:34 PM
245/2/25.ASP?LN=EN-US&SD=g
n&FR=0&qry=perl&rnk=8&src=DHCS_MSPSS_gn_SRCH&SPR=IIS
You are now all set to execute Perl CGIs in PWS.
-- Rex
- Original Message -
From: "Karthik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 1
er to serve CGIs, you have to have the shebang line,
even in Windows.
If your perl.exe is located in c:/perl/bin, then if you code your CGI in
Apache, you should have the first line of the CGI as
#!c:/Perl/bin/Perl
-- Rex
- Original Message -
From: "Karthik Krishnamurthy" &l
Try Mail::POP3Client module, available from the PPM Repository of
Activestate.
- Rex
- Original Message -
From: "Chris Zampese" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 23, 2002 10:49 PM
Subject: Win32::OLE, or maybe POP3Client Modul
ooves well for sending HTML mails too, which is pretty
straightforward with Mail::Sender.
-- Rex
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
element of the array will be populated to $subvar1 and second
element of the array will be populated to $subvar2.
-- Rex
-Original Message-
From: Batchelor, Scott [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 4:21 PM
To: '[EMAIL PROTECTED]'
Subject: Calling subroutines...
Hi
If it is fixed drives, you can use the Win32::NetAdmin module:
C:\Perl\rex>perl -MWin32::NetAdmin -e "Win32::NetAdmin::GetServerDisks('',
\@arr); print qq[Fixed Drives in this Machine are: \n];for(@arr){ print
qq[$_\n];}"
Fixed Drives in this Machine are:
A:
C:
D:
Pleas
th
default flavor of ActiveState for Windows.
However for the other two, you can get the modules here:
For Win32::Lanman --> ftp://ftp.roth.net/pub/ntperl/others/Lanman/
For Win32::AdminMisc -->ftp://ftp.roth.net/pub/ntperl/AdminMisc/
Cheers,
Rex
-Original Message---
Please go to http://aspn.activestate.com/ASPN and you will find a list of
Win32-specific lists. Post questions on Perl-Win32-Admins and
Perl-Win32-Users and you will get answers to Lanman modules.
-- Rex
-Original Message-
From: Dave Reynolds [mailto:[EMAIL PROTECTED]]
Sent: Tuesday
for running CGI applications.
Please bookmark and refer to these articles:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q266115
and
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q274772
and
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245225
Cheers,
Rex
Dave
I am afraid this is a OT. Please consult with good Javascript
documentation available online from Netscape and Microsoft Websites.
You can write a javascript function, say 'checkThis' which would accept
a parameter that corresponds to your text object and associate that with
the onBlur event .
thing
}
Similarly,
if($_field eq 'something'){
do something
}
if($_file == 100){
do something
}
Please see perlop manpage for more details.
Cheers,
Rex
Jaishree Rangaraj wrote:
>Hello
>
>I have a value say "$s_field". I have to see if this matches with in the
perl EXCEL app/Win32::OLEYou should have your pathSeparatorChar as "\\" and not "/".
Since you are using Microsoft's Excel Engine, the Excel APIs are very strict about the
path syntax and therefore, Perl's separatorChar of "/" (forward slash) will not wo
57 matches
Mail list logo