Re: Date function

2003-08-27 Thread Rick Nakroshis
"Royer, Robby E (Compaq)" wrote: > > Can someone explain to me how I can convert a string that represents the > number of days since Jan 1 of the current year. The log file that I am > reading is reporting 23 as the day of the year, which would convert to Jan > 23, 2003. > > Is there a function.

Re: How to execute a command under win98 via perl script?

2003-08-27 Thread Carl Jolley
On Wed, 27 Aug 2003, Tony Cheung wrote: > Hi, everybody > How to execute a command under win98 via perl script? Example: copy c:\a.txt d:\ > Thanks Look at the docs in perlfunc for the system() function and either use single quotes or escape the backslashes if the parameter string uses double qu

Re: Obtaining a perl hash id in a call back function.

2003-08-27 Thread Carl Jolley
On Wed, 27 Aug 2003, Saber ZRELLI wrote: > > Hi all , > > > The problem is as follows : > > > i have several communication sockets , to each socket i attach a costumised > output window ( which is a perl object i've created ) . > and i store all the output windows in a hash called WIN_LIST , this

RE: How to execute a command under win98 via perl script?

2003-08-27 Thread Carl Jolley
On Wed, 27 Aug 2003, Wenjie Wang wrote: > system "copy c:\a.txt d:\a.txt"; > This won't work due to unescaped backslashes in a double quoted string. [EMAIL PROTECTED] All opinions are my own and not necessarily those of my employer ___

Re: Invoke perl script from CGI and redirect STDOUT, STDERR to afile

2003-08-27 Thread Carl Jolley
On Wed, 27 Aug 2003, Savinder Puri wrote: > Hi All, > > Here's what I want to do: > > 1. A web-page invokes a CGI perl script (say cgi.pl), and passes certain user inputs > in the QUERYSTRING. > > 2. The CGI script does some pre-processing and invokes another perl script (say > a.pl), passing it

Re: Help with parsing file

2003-08-27 Thread shurst
> I have a large text file, which contains data in the form: > > parameter name="value" // comment about the line > > For example: > > LCD Display Modes="3" // Add the modes to allow them: 1=status 2=aids > 4=engine/brake temps > > I am trying to make a GUI that will allow you to see the param

Re: Date function

2003-08-27 Thread Jim Kubicek
Take a look on CPAN. Date::Manip comes to mind. Jim - Original Message - From: "Royer, Robby E (Compaq)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 27, 2003 10:22 AM Subject: Date function > Can someone explain to me how I can convert a string that represents t

Date function

2003-08-27 Thread Royer, Robby E (Compaq)
Can someone explain to me how I can convert a string that represents the number of days since Jan 1 of the current year. The log file that I am reading is reporting 23 as the day of the year, which would convert to Jan 23, 2003. Is there a function. robby __

RTF::TEXT::Converter

2003-08-27 Thread Juan Carlos Cruz Dada
Greetings perlers, I'm using RTF::TEXT:Converter in a migration of data from RTF to Plain Text. The problem is that I cannot redirect the parsing to a file or a variable, even though I have changed the Output setting. Here's part of the code, I need to redirect from STDOUT to a variable preferably

Help with better way to do this

2003-08-27 Thread steve silvers
The below snippet works, but is very hard to customize and format into a table. How can this be redone? #!/Perl -w use strict; # - my $numbers ="04|09|15|16|21|23|25|29|38|40|41|42|54|55|56|62|64|65|67|68|73|80"; my $numbers2="02|04|11|15|16|23|44|54|62

RE: Help with parsing file

2003-08-27 Thread Peter Eisengrein
Title: RE: Help with parsing file First, I'd change the // to # Then, I'd actually set the parameter like a scalar, i.e. $LCDDisplayModes=3; # Add the modes to allow them: 1=status 2=aids 4=engine/brake temps Then in the main script: require 'parameter_file'; -Original Message-

Help with parsing file

2003-08-27 Thread Beckett Richard-qswi266
Guys, I have a large text file, which contains data in the form: parameter name="value" // comment about the line For example: LCD Display Modes="3" // Add the modes to allow them: 1=status 2=aids 4=engine/brake temps I am trying to make a GUI that will allow you to see the parameter, default

RE: How to execute a command under win98 via perl script?

2003-08-27 Thread Wenjie Wang
You got me on it:) Don't trust copy and paste. it was meant to save time, but might ends up spent more time to debug:( Regards, WWang - Wenjie Wang(a.k.a. William) [EMAIL PROTECTED] WANG Infonology Systems Ph: +61

Re: How to execute a command under win98 via perl script?

2003-08-27 Thread mkellner
Hi, don't forget to double '\' inside a "" quoted string. Regards, Martin Kellner Wenjie Wang: 27.08.2003 12:08 system "copy c:\a.txt d:\a.txt"; - Wenjie Wang(a.k.a. William) [EMAIL PROTECTED] WANG I

Re: How to execute a command under win98 via perl script?

2003-08-27 Thread mkellner
Hi, doesn't system "copy c:\\a.txt d:\\"; work? Regards, Martin Kellner Tony Cheung: 27.08.2003 09:51 Hi, everybody How to execute a command under win98 via perl script? Example: copy c:\a.txt d:\ Thanks

RE: How to execute a command under win98 via perl script?

2003-08-27 Thread Wenjie Wang
system "copy c:\a.txt d:\a.txt";   -Wenjie Wang(a.k.a. William)  [EMAIL PROTECTED]WANG Infonology Systems Ph: +61 2-98712018/0412688380= -Origi

How to execute a command under win98 via perl script?

2003-08-27 Thread Tony Cheung
Hi, everybody How to execute a command under win98 via perl script? Example: copy c:\a.txt d:\ Thanks

RE: Obtaining a perl hash id in a call back function (formats added)

2003-08-27 Thread Saber ZRELLI
Hi all , The problem is as follows : i have several communication sockets , to each socket i attach a costumised output window ( which is a perl object i've created ) . and i store all the output windows in a hash called WIN_LIST , this is the code snippet : >>> $WIN_LIST{$sock}=new perl_modul

Obtaining a perl hash id in a call back function.

2003-08-27 Thread Saber ZRELLI
Hi all , The problem is as follows : i have several communication sockets , to each socket i attach a costumised output window ( which is a perl object i've created ) . and i store all the output windows in a hash called WIN_LIST , this is the code snippet : >>> $WIN_LIST{$sock}=new perl_modu

Re: Query the OS for CD-ROM drive letter?

2003-08-27 Thread Lee Goddard
Yes, using Win32API::File::GetLogicalDrives: getLogicalDrives "@roots= getLogicalDrives()" Returns the paths to the root directories of all logical drives currently defined. This includes all types of drive lettters, such as floppies, CD-ROMs, ha

RE: TK::JPEG

2003-08-27 Thread Lee Goddard
Have a look at ftp://theoryx5.uwinnipeg.ca/ They may have one. At 04:08 27/08/2003, Su, Yu wrote: Hi, Does anyone know where I can get a TK::JPEG ppd package for ActivePerl v5.8.0? I downloaded the source code (v2.014)from CPAN, got compiler error: ___ P

Spawning.

2003-08-27 Thread Molumuri, Janardhan
Hi all, How to spawn a subroutine which does some set of operations on particular machine? Thanks, --janardhan. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Invoke perl script from CGI and redirect STDOUT, STDERR to a file

2003-08-27 Thread Savinder Puri
Title: Message Hi All, Here's what I want to do: 1. A web-page invokes a CGI perl script (say cgi.pl), and passes certain user inputs in the QUERYSTRING. 2. The CGI script does some pre-processing and invokes another perl script (say a.pl), passing it the QUERYSTRING parameters. 3. Script a.p

RE: Win32::API help

2003-08-27 Thread Jangale V-S SPEL-TIT
Thanks Bill, It works ! Thanks a lot again ! With Best Regards, V.S. Jangale ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Command line options question

2003-08-27 Thread Carl Jolley
On Tue, 26 Aug 2003, Medlen, Jiri wrote: > Hi, > > I'm trying to simply capture VBAV29933 using Command line option > > result_sale.tmp contains > jmedlenproverisign< > /Partner>0 >MatchNo > MatchService Not > RequestedApprovedVBAV29933 Code>894PNI000 ata Name="IAVS" > Value="N"> > > > > perl -