Re: Win32 Environment Variable Read-only?

2006-02-04 Thread L. Neil Johnson
Using AS Perl 5.8.7 under W98SE, the PATH environment variable is displayed, then assigned a new value; but the new value doesn't propagate back to the MS-DOS %PATH% variable. Are the %ENV values read-only? Many thanks to Robert, Bill, Alex, and Chris who responded to this inquiry. I should

Win32 Environment Variable Read-only?

2006-02-03 Thread L. Neil Johnson
Using AS Perl 5.8.7 under W98SE, the PATH environment variable is displayed, then assigned a new value; but the new value doesn't propagate back to the MS-DOS %PATH% variable. Are the %ENV values read-only? C:\Programs\PERLSET ...

RE: Importing Identifiers from Main::

2005-07-01 Thread L. Neil Johnson
On Thursday, June 30, 2005 1:25 AM, $Bill Luebkert [SMTP:[EMAIL PROTECTED] wrote: You could start that package off with a 'package main;' stmt which will put you in the same namespace as the calling module. Good idea. This obviates the need to import identifiers. Rob suggested a similar

RE: Importing Identifiers from Main::

2005-07-01 Thread L. Neil Johnson
On Thursday, June 30, 2005 09:33:23 +0200, Johan Lindstrom [SMTP:[EMAIL PROTECTED] wrote: This is what I meant when I said a hash is a good solution to this problem. You're not really interested in the order, you want to access each element by a convenient name. It sounds like a bit of data

RE: Importing Identifiers from Main::

2005-06-30 Thread L. Neil Johnson
On Wednesday, June 29, 2005 2:19 AM, $Bill Luebkert [SMTP:[EMAIL PROTECTED] wrote: Your explanation leaves a little to be desired. You could knock it down to a single hash that contains pointers to all your arrays if that helps. Then you could use names instead of numbers (or not). Not sure

RE: Importing Identifiers from Main::

2005-06-30 Thread L. Neil Johnson
Thank you for responding. Please see my detailed explanation, posted to Bill Luebkert recently. On Wednesday, June 29, 2005 10:42:45 +0200, Johan Lindstrom [SMTP:[EMAIL PROTECTED] wrote: If you're familiar with OO, that sounds like the way to go. You have data. You have subs that act on this

RE: Importing Identifiers from Main::

2005-06-30 Thread L. Neil Johnson
On Wednesday, June 29, 2005 3:10 AM, Sisyphus [SMTP:[EMAIL PROTECTED] wrote: Perl in a Nutshell is quite correct here, I think. If the module does not have a package name (which is rarely the case) then $var, $::var, and $main::var are all the same thing. D:\pscrpttype trial.pm sub

Importing Identifiers from Main::

2005-06-29 Thread L. Neil Johnson
Problem Statement: The main program creates an array of pointers to anonymous arrays, each of which has about 10 elements. Since I am in the development phase, I keep changing the order and identity of the elements. Because there are many lines of code that reference those elements, I

Can't use $\ to force line termination to 0x0a

2005-02-23 Thread L. Neil Johnson
An MS-DOS batch file launches a PERL script which calculates input specifications for a filter-design program written in FORTRAN running under cygwin's shell for MS-DOS. The specifications are written by PERL to many text-files which are read by the UNIX-based program. Therein lies the