RE: mail header split

2005-05-31 Thread Ankur Gupta
From: John W. Krahn [mailto:[EMAIL PROTECTED] > Ankur Gupta wrote: > > > > You can use splice to capture only the relevant fields. > > change it to this... > > > > my ($bookrefNumber) = (split(/-/,$pop3MailContent{'To'}))[0]; > > You mean a list slice, splice() is a perl function. > > perldoc

It seems that Win32::OLE::Variant doesn't work!

2005-05-31 Thread J aperlh
It seems that Win32::OLE::Variant doesn't work! Below is the script: #! perl -W use strict; use Win32::OLE; use Win32::OLE::Variant; my $Array = Variant(VT_ARRAY|VT_R8, [1,2], 2); $Array->Put([[1,2], [3,4]]); Below i

Comparison of multiple values

2005-05-31 Thread N. Ganesh Babu
Dear All, I need to compare the data of this tagged information with a txt are replace the corresponding values in this tagged info. Tagged File: PRB X Pengcheng Dai, H. J. Kang, H. A. Mook, M. Matsuura, J. W. Lynn, Y. Kurita, S. Komiya, and Y. Ando, Phys. Rev. B (to be publ

Re: please help me to check why this perl script does not work!

2005-05-31 Thread Fei Li
Hi, Chris, Thanks for your code. I have test in my computer and it works with necessary modification to suit for my case. Can you give me some brief ideas that why this code is much faster than previous one. thanks much! --Frank On 5/31/05, Chris Heiland <[EMAIL PROTECTED]> wrote: > > >

Re: :Oracle problems

2005-05-31 Thread Todd Lewis
Joining OTN (Oracle Technology Network) is free. It costs an e-mail address and some contact information. It might generate a salesrep call.Oracle Does contain a lot documentation. http://www.oracle.com/technology/index.html [EMAIL PROTECTED] wrote: oracle.com -Original Message- F

Re: Generating subrouint call on the fly

2005-05-31 Thread John W. Krahn
Wagner, David --- Senior Programmer Analyst --- WGO wrote: Mind is blank or I have looked at a number of books, but I am just not getting ir right. Depending on the data provided, I want to invoke proc_step1, proc_step3, etc. Each will have two params passed ($Myloc, $MyTime). Dont want to hard

Re: A question about Win32:OLE

2005-05-31 Thread J aperlh
Thanks for your help! I have a application installed on my system. I can start the application by using: my $app = Win32::OLE->GetActiveObject('Aaa.Bbb'); The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or OLE-Browser. I did a thorough search! Another question is: How

Re: mail header split

2005-05-31 Thread John W. Krahn
Ankur Gupta wrote: You can use splice to capture only the relevant fields. change it to this... my ($bookrefNumber) = (split(/-/,$pop3MailContent{'To'}))[0]; You mean a list slice, splice() is a perl function. perldoc -f splice John -- use Perl; program fulfillment -- To unsubscribe, e-m

Generating subrouint call on the fly

2005-05-31 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Mind is blank or I have looked at a number of books, but I am just not getting ir right. Depending on the data provided, I want to invoke proc_step1, proc_step3, etc. Each will have two params passed ($Myloc, $MyTime). Dont want to hard code into table, but generate something like:

Re: Help wanted

2005-05-31 Thread Wiggins d'Anconia
Yuanxin wrote: > Hi, > I had a lot of data, which are all x-y values. I stored these data in MySQL > database. Now I wanna use Perl to get these data from database to build a > figure(2-dimensional) and people can use internet to see the figure. In > addition, when people see the figure via inte

Help wanted

2005-05-31 Thread Yuanxin
Hi, I had a lot of data, which are all x-y values. I stored these data in MySQL database. Now I wanna use Perl to get these data from database to build a figure(2-dimensional) and people can use internet to see the figure. In addition, when people see the figure via internet, the x-y value of a

RE: :Oracle problems

2005-05-31 Thread Michael . Coll-Barth
oracle.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 4:39 PM To: [EMAIL PROTECTED]; beginners@perl.org Subject: RE: :Oracle problems Ok that makes more sense, I will look online for a reference of oracle SQL language, that is NOT

RE: :Oracle problems

2005-05-31 Thread christopher . l . hood
Ok that makes more sense, I will look online for a reference of oracle SQL language, that is NOT sql*plus. Do you know where I might start, besides google.com, of course I will do that. Chris -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 2:

RE: :Oracle problems

2005-05-31 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > All, > > I am getting the following error while trying to use DBD::Oracle: > > DBD::Oracle::st execute failed: ORA-00900: invalid SQL statement (DBD > ERROR: OCIStmtExecute) [for Statement "describe ALL_USERS"] at > ./oracleTest.pl line 69. DESCRIBE is a SQL*Plus comma

RE: :Oracle problems

2005-05-31 Thread Moon, John
Subject: RE: :Oracle problems Subject: DBD::Oracle problems All, I am getting the following error while trying to use DBD::Oracle: DBD::Oracle::st execute failed: ORA-00900: invalid SQL statement (DBD ERROR: OCIStmtExecute) [for Statement "describe ALL_USERS"] at ./oracleTest.pl line 69.

Re: DBD::Oracle problems

2005-05-31 Thread Philip M. Gollucci
[EMAIL PROTECTED] wrote: All, I am getting the following error while trying to use DBD::Oracle: DBD::Oracle::st execute failed: ORA-00900: invalid SQL statement (DBD ERROR: OCIStmtExecute) [for Statement "describe ALL_USERS"] at ./oracleTest.pl line 69. My oracle days were a while ago,

RE: :Oracle problems

2005-05-31 Thread Moon, John
Subject: DBD::Oracle problems All, I am getting the following error while trying to use DBD::Oracle: DBD::Oracle::st execute failed: ORA-00900: invalid SQL statement (DBD ERROR: OCIStmtExecute) [for Statement "describe ALL_USERS"] at ./oracleTest.pl line 69. I have tested the connectio

DBD::Oracle problems

2005-05-31 Thread christopher . l . hood
All, I am getting the following error while trying to use DBD::Oracle: DBD::Oracle::st execute failed: ORA-00900: invalid SQL statement (DBD ERROR: OCIStmtExecute) [for Statement "describe ALL_USERS"] at ./oracleTest.pl line 69. I have tested the connection manually with sqlplus, and al

RE: A question about Win32:OLE

2005-05-31 Thread Siegfried Heintze
You can use regedit too. The OLE/COM Object Viewer is the favorite. Well, actually, the documentation/tutorial for the function you are trying to call is the favorite. If you know the CLSID, you can call a function like CLSIDtoString (or something like that) to get the progid. Siegfried -O

Best WML editor for Perl?

2005-05-31 Thread Maxipoint Rep Office
WapEmperor Wap Pro 2.0 was be good, but he is not at the web now.. WapEmperor Wap Pro 2.0 is the single most powerful WML editor for Windows 95/98, Windows NT, and Windows 2000 systems. Using this program simplifies the WML development effort and saves time of up to an amazing 80%. This advanced

RE: $p{"Bryan"}{"age"} = 31

2005-05-31 Thread Bob Showalter
Bryan R Harris wrote: > Is there anything wrong with out of the blue making a statement like > this: > > $p{"Bryan"}{"age"} = 31; That's fine, as long as $p{Bryan} doesn't exist or is already a hashref. See: http://c2.com/cgi/wiki?AutoVivification. For safety, be sure to "use strict" so you do

Best WML editor for Perl?

2005-05-31 Thread Maxipoint Rep Office
I wish create interactive WAP WML pages using Perl.. Best WML editor is best fot these job? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

$p{"Bryan"}{"age"} = 31

2005-05-31 Thread Bryan R Harris
Is there anything wrong with out of the blue making a statement like this: $p{"Bryan"}{"age"} = 31; I thought perl required me to use the anonymous hash composer: $p{"Bryan"} = { "age" => 31 }; ... but the first example seems to work. So I was just wondering if that's okay, or if it's a no-n

RE: please help me to check why this perl script does not work!

2005-05-31 Thread Chris Heiland
> -Original Message- > From: Bob Showalter [mailto:[EMAIL PROTECTED] > Sent: Sunday, May 29, 2005 5:41 AM > To: Fei Li; beginners@perl.org > Subject: Re: please help me to check why this perl script > does not work! > > Fei Li wrote: > > I wish to submit some protein sequences via LWP

RE: simple open file

2005-05-31 Thread Roberts Mr Richard L
try: open(LOGS, ">>$filename") or die "msg"; print LOGS "$subscriber \n"; close(LOGS); -Original Message- From: Manav Mathur [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 9:20 AM To: lance w; beginners@perl.org Subject: RE: simple open file |-Original Message- |From: l

RE: simple open file

2005-05-31 Thread Manav Mathur
|-Original Message- |From: lance w [mailto:[EMAIL PROTECTED] |Sent: Tuesday, May 31, 2005 6:42 PM |To: beginners@perl.org |Subject: simple open file | | |Hello, |I'm trying to open (create if necessary) a file for APPEND, that will |serve as a log. The script I'm using will open a file, b

simple open file

2005-05-31 Thread lance w
Hello, I'm trying to open (create if necessary) a file for APPEND, that will serve as a log. The script I'm using will open a file, but fails to print anything to it. Any advice? my $filename = "open_file.txt"; open(APPEND, ">> $filename") or die "Couldn't open $filename for appendin

RE: mail header split

2005-05-31 Thread Ankur Gupta
> I have an email To field that I want regex on > > The email is as so: > > [EMAIL PROTECTED] > > Im trying to get the number before the hyphen. > > Currently I have it as so > > my ($bookrefNumber, $discard) = split('-',$pop3MailContent{'To'}); You don't need to use $discard variable. You c

mail header split

2005-05-31 Thread Brent Clark
Hi all I have an email To field that I want regex on The email is as so: [EMAIL PROTECTED] Im trying to get the number before the hyphen. Currently I have it as so my ($bookrefNumber, $discard) = split('-',$pop3MailContent{'To'}); but I dont like this method. If anyone has a nice elegant m