Re: substitution on a file
At 12:42 PM 5/3/01 -0400, Rex Posadas wrote: Start of Code *** $oldWord = Orange; $newWord = Apple; $^I=.bk; while () { $_ =~ s/$oldWord/$newWord/g; print; } End of Code *** This code replaces any occurance of Orange so the word MyOrange will be changed to MyApple. I would like to change this so that Orange is the only one that is replaced by the string Apple. Replace your substitution line with: $_ =~ s/\b$oldWord\b/$newWord/g; The \b matches a word boundary. Steve ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
Re: PPM: package repository has changed?
At 05:02 PM 4/16/01 -0700, Brian McDonald wrote: What does a guy have to do to get PPM to work again? And why in the world would PPM particulars be changed without communicating the fix in some way? Start PPM, and to add the repository type: 'set repository repository name http://www.ActiveState.com/PPMPackages/5.6' Then type 'set save' to save the added repository for later PPM sessions. For the repository name part, just call it whatever you want. Steve ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
PGP and ActivePerl
I need to perform PGP encryption on a file on an NT 4 system. PGP 5.5 is installed. I found a module, Crypt::PGP5, but am having trouble with it. It uses the module Expect, which I installed, but that uses the module IO::Pty, about which the Expect documentation says, "The operating system must include ptys. This excludes non-Unix operating systems as far as I know." So it looks like there is no way I can get Crypt::PGP5 to work on an NT machine. Has anyone else used PGP encryption on NT? There does not seem to be a command line interface to it, or I'd be able to manage through that. Steve Wadding ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
Re: [Perl-win32-users] [OT] : is the list still working ?
At 10:15 AM 6/2/00 +0200, Fabien Martinet wrote: is the list working ? I've received nothing since 31/05 15h09... No wonder he wasn't getting messages. They were time warped over nine months into the future. Sorry, couldn't resist. Steve ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
RE: strict frustration
At 04:54 PM 3/6/01 -0600, Michael Marziani wrote: Yeah, I think our( ); is now the standard. -Mike Was part of the question along the way about how to pass variables to a script called with "do" while using "use strict"? I had done this by naming the variable $main::varname, because I got it to work that way. As a test, I tried "vars", which worked. Then I tried "our". If the called script also had "use strict" in it, then the variable had to be declared with "our" in both scripts, but it worked. Steve ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
Right-click file properties
In Windows, if you right-click on a file in explorer, one of the menu items is "Properties". For some executables, the properties you can view include Version information and things like comments, company name, product name, product version, etc. Is there an easy way for a perl script to access this information? Steve Wadding ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
Re: Net::SSH Help?
At 11:56 AM 2/13/01 +, Martin Moss wrote: Has anybody had any experience with using Net::SSH? Am trying to implement a CVS system (was going to use VCS::CVS), but just been told we're only allowing ssh across all our servers, so I need to find a replacement for telnet and FTP. So basically I'm looking for any scripts or advice on using perl to send ssh/scp commands. I know there's also a Net::SCP module, which needs Net::SSH to be installed. I expect to have to use it soon, but haven't got that far yet. Steve W. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
Re: nmake was Re: modules compilation problem: missing separator????
At 04:48 PM 2/5/01 +1100, Sisyphus wrote: Hi, There's probably a later version of nmake than the one my link downloads :-) Stuffed if I can find it, however. I did manage to find nmake15.exe on the Microsoft FTP site, from home. I hadn't found it before because I can't seem to get to FTP site from work, I suspect because of the firewall. The date on the extracted nmake.exe is in 1994, so I can see why you think there must be a later version. Steve W. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
RE: modules compilation problem: missing separator????
At 10:09 PM 2/2/01 -0500, Thiebaud Richard wrote: Your particular error might be solved by using nmake instead of gnu make; I've had similar errors. "nmake" is downloadable from Microsoft. Where does one find nmake at Microsoft? Steve W. Steven Wadding [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users