Perl 5.6.1 on Win 2000

2005-03-10 Thread sadanand limaye
Hi , I had built perl 5.6.1 with libwin32-0.19 on windows2000. Earlier i was using perl 5.005 and the starting script which calls 2 processes in background as system(start /b xyz.pl ); $command = abc.exe ... ; `$command`; works fine with perl 5.005. But after I changed perl to perl

How to 'touch' in Windows

2005-03-10 Thread Maxmelbin Neson (RBIN/EDM3)
Title: How to 'touch' in Windows Hi, If I need to create a blank file in Unix I do touch file name How do I do it in Windows ??/ Regards Maxmelbin Neson - Robert Bosch

Re: How to 'touch' in Windows

2005-03-10 Thread Bruno Georges
Have a look at: ExtUtils::Command Check ActieState doc. perl -MExtUtils::Command -e touch Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+- | | Maxmelbin Neson (RBIN/EDM3) | |

RE: How to 'touch' in Windows

2005-03-10 Thread Anderson, Mark (Service Delivery)
Why not just use open()? Kind regards, Mark Anderson Service Improvement Programme Level 2, 113 Dundas Street Edinburgh, EH3 5DE Tel: 0131 523 8786 Mob: 07808 826 063 -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Maxmelbin Neson (RBIN/EDM3)

Re: How to 'touch' in Windows

2005-03-10 Thread Chris Wagner
Cygwin provides touch. -- REMEMBER THE WORLD TRADE CENTER ---= WTC 911 =-- ...ne cede males 0100 ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: How to 'touch' in Windows

2005-03-10 Thread Paul Sobey
Title: How to 'touch' in Windows Would this suit you? open FILE, "file"; close FILE; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maxmelbin Neson (RBIN/EDM3)Sent: 10 March 2005 12:43To: perl-win32-users@listserv.ActiveState.comSubject: How to 'touch' in Windows Hi,

Re: Strange behaviour reading accents

2005-03-10 Thread Marcos Lorenzo de Santiago
On Thursday 10 March 2005 01:59, Sisyphus wrote: Si I think you can do it using the Encode module, but I don't have a demo Si script. I do have a script that uses Text::Iconv which is reproduced here: Any code will help :) Si use warnings; Si use strict; Si use Text::Iconv; Si Si

Re: Strange behaviour reading accents

2005-03-10 Thread Marcos Lorenzo de Santiago
On Thursday 10 March 2005 17:25, Chuck Somerville wrote: CS But you don't see that. You see ßÚݾ·. Your e-mail address indicates you are in Spain, so you probably have some sort of keyboard with European accented characters on it, and your windows is probably configured to use keyboard and

Re: Strange behaviour reading accents

2005-03-10 Thread Marcos Lorenzo de Santiago
On Thursday 10 March 2005 18:47, Marcos Lorenzo de Santiago wrote: ML Si use Text::Iconv; Where can I find this module for windows? In activestate.com sais it's not available for windows because it's installation fails. I tried ppm install Text::Iconv but said it could'nt be found... Is

adding a title to a file on windows

2005-03-10 Thread Earthlink-m_ryan
Does anyone know how to add"Comments" to a file descriptionfrom the command prompt? I would like to change a list of files from long names to short names, but retain the descriptions in a field like "title" or "Comments". file names are- nvar_1234_Virginia_Jurisdictional_addendum.pdf

Re: adding a title to a file on windows

2005-03-10 Thread Chris Wagner
The file comments are part of the file itself. Are u talking about saving off the long name somewhere for future reference? -- REMEMBER THE WORLD TRADE CENTER ---= WTC 911 =-- ...ne cede males 0100 ___ Perl-Win32-Users mailing list

RE: adding a title to a file on windows

2005-03-10 Thread Peter Eisengrein
First you need a hard-and-fast rule for converting the names. In your example it would look like you want everything up to the last number in the second "word" (where words are delimited by "_"). Also, is it safe to assume they are all in the same directory? If that is the case, it could be

Re: adding a title to a file on windows

2005-03-10 Thread Earthlink-m_ryan
Chris wrote: The file comments are part of the file itself. Are u talking about saving off the long name somewhere for future reference? I guess I didn't explain very well. I would like to access the windows file browser functionality in order to add a title or comment to the properties of a

Counting total elements in a reference

2005-03-10 Thread Ben Conrad
Folks, I'm using Win32::TieRegistry to read a list of elements in a REG_MULTI_SZ and I need help with the printing of the references returned when I use $key-SplitMultis(1). use Win32::TieRegistry ( Delimiter = / ); $RegKey = LMachine/System/CurrentControlSet/Services/Tcpip/Linkage/; $key =

Re: Counting total elements in a reference

2005-03-10 Thread Chris Wagner
I think @{$ValueString} is what u want. At 04:22 PM 3/10/05 -0500, Ben Conrad wrote: print $ValueString-[0] \n $ValueString-[1]; \Device\{531DA74F-9197-42AA-B8D8-BDA2E6F86908} \Device\NdisWanIp -- REMEMBER THE WORLD TRADE CENTER ---= WTC 911 =-- ...ne cede males 0100

Re: adding a title to a file on windows

2005-03-10 Thread Kevin Carothers
Wow- I never knew those properties even existed... It is possible there is some sort of a PIF file that's created when you create comments under the summary tab? KC On Thu, 10 Mar 2005 15:26:29 -0500, Earthlink-m_ryan [EMAIL PROTECTED] wrote: Chris wrote: The file comments are part of the

simple reg ex

2005-03-10 Thread lorid
I know this is perl not javascript, I thought I was good at deciphering reg ex but the 2nd line in this function has got me puzzled. Can anyone decipher: X = (!X ? 2 : X); function round(number,X) { // rounds number to X decimal places, defaults to 2 X = (!X ? 2 : X); return

RE: simple reg ex

2005-03-10 Thread Peter Guzis
This is not a regular expression, but rather what is know as the ternary operator. It is a terse way of writing an if-else statement with variable assignment. In this case, it is the equivalent of writing: if (!X) { X = 2; } else { X = X; } -Original Message- From: [EMAIL

Re: simple reg ex

2005-03-10 Thread lorid
sorry , I sent question too soon, long day. forgot about the conditional reg ex (test_value ? if_true : if_false) lori ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe:

RE: simple reg ex

2005-03-10 Thread Charles K. Clarkson
lorid wrote: : sorry , I sent question too soon, long day. : : : forgot about the conditional reg ex It's not a regular expression. It's an operator. : (test_value ? if_true : if_false) Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328

Re: Strange behaviour reading accents

2005-03-10 Thread Sisyphus
Marcos Lorenzo de Santiago wrote: On Thursday 10 March 2005 18:47, Marcos Lorenzo de Santiago wrote: ML Si use Text::Iconv; Where can I find this module for windows? In activestate.com sais it's not available for windows because it's installation fails. I tried ppm install Text::Iconv but said

perl tk binding question

2005-03-10 Thread assistent
i All! In following snippet I have 2 parallel arrays @list and @data and I want on selecting entry in listbox to see corresponding data array element in textbox using UP and DOWN arrows is OK but I have to make 2 mouse clicks to make right selection! MY question - how to modify this scheme to

Re: Counting total elements in a reference

2005-03-10 Thread $Bill Luebkert
Ben Conrad wrote: Folks, I'm using Win32::TieRegistry to read a list of elements in a REG_MULTI_SZ and I need help with the printing of the references returned when I use $key-SplitMultis(1). use Win32::TieRegistry ( Delimiter = / ); $RegKey =