Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rex
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

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rex
. 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

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rex
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

Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rex
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/

Good Resource (book) for RegEx

2008-12-03 Thread Rex
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: [

Re: UNIVERSAL class like functionality for non-OO?

2005-09-06 Thread Rex Rex
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

Re: round up to nearest...

2005-08-22 Thread Rex Rex
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 =

Re: References Question

2005-08-19 Thread Rex Rex
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

Re: perl app as a service ?

2005-08-17 Thread Rex Rex
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

Re: converting to FLOATING_POINT..

2005-08-17 Thread Rex Rex
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

Re: converting to FLOATING_POINT..

2005-08-17 Thread Rex Rex
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

Re: which packages are installed?

2005-08-16 Thread Rex Rex
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

Re: perl EXCEL app/Win32::OLE

2002-06-13 Thread Arul, Rex\(NEA-IMAP\)
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

RE: A) is there a WIN32 newsgroup? B) win context question

2002-05-28 Thread Arul, Rex
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

RE: Gettting Drives on Windows

2002-05-24 Thread Arul, Rex
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---

RE: Gettting Drives on Windows

2002-05-24 Thread Arul, Rex
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

RE: Calling subroutines...

2002-05-20 Thread Arul, Rex
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

Re: Question in perl syntax

2002-05-14 Thread Arul, Rex (NEA-IMAP)
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

Re: [Q] Validating Forms?!

2002-02-21 Thread Arul, Rex (NEA-IMAP)
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 .

Re: learning perl

2002-02-20 Thread Arul, Rex (NEA-IMAP)
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

Re: sending email - Mail::Sender and Mail::Sendmail

2002-01-25 Thread Rex Arul
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]

Re: Win32::OLE, or maybe POP3Client Module??

2002-01-23 Thread Rex Arul
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

Re: problem in the #/usr/local/bin line

2001-11-17 Thread Rex Arul
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

Re: problem in the #/usr/local/bin line

2001-11-17 Thread Rex Arul
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

Re: get current dir

2001-11-16 Thread Rex Arul
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

Re: get current dir

2001-11-16 Thread Rex Arul
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

Re: sub-routine help needed.

2001-11-16 Thread Rex Arul
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

To Objects or Not is the Question

2001-11-10 Thread Rex Arul
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]

Re: Duplicates in 2D Array

2001-11-09 Thread Rex Arul
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

Re: calling Win32 API???

2001-11-09 Thread Rex Arul
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

Re: Activ state Perl Dev Kit

2001-11-09 Thread Rex Arul
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? > > > -

[Fwd: Re: Defining Global Variables w/use strict;]

2001-11-08 Thread Arul, Rex
, 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

Re: [OT] NT mailing list

2001-11-08 Thread Arul, Rex
[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

Re: calling Win32 API???

2001-11-08 Thread Arul, Rex
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

my variables

2001-11-08 Thread Arul, Rex
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]

Re: w32 perl.exe stand-alone

2001-11-08 Thread Arul, Rex
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

Persisting Values Across Method Calls

2001-10-29 Thread Rex Arul
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

Re: newbie : how to find the latest file in a directory

2001-10-29 Thread Rex Arul
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

Re: sort

2001-10-29 Thread Rex Arul
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

Spam

2001-10-26 Thread Rex Arul
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

Re: Stupid question...

2001-10-26 Thread Rex Arul
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

Re: Stupid question...

2001-10-26 Thread Rex Arul
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

Re: Stupid question...

2001-10-26 Thread Rex Arul
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

Re: Stupid question...

2001-10-26 Thread Rex Arul
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

Re: Stupid question...

2001-10-26 Thread Rex Arul
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

Re: no luck pie charts and perl

2001-10-25 Thread Rex Arul
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

Re: undef function

2001-10-23 Thread Rex Arul
$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]&

Re: Maintaining Order of Keys in a Hash

2001-10-23 Thread Rex Arul
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

Maintaining Order of Keys in a Hash

2001-10-22 Thread Rex Arul
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

Re: Interact with microsoft Excel

2001-10-22 Thread Rex Arul
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

Re: Compression

2001-10-05 Thread Rex Arul
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]>

Re: encrypt, decrypt module suggestions

2001-10-03 Thread Rex Arul
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

Re: index of an array element

2001-10-03 Thread Rex Arul
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

Re: index of an array element

2001-10-03 Thread Rex Arul
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);

Re: problem in knowing session variables .

2001-10-03 Thread Rex Arul
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]>

Re: A little off topic.

2001-08-08 Thread Rex Arul
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

installing Mail-tools module in windows 2000

2001-05-26 Thread Rex Posadas
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