RE: Help with learning VB Script (Please don't shout at me)

2003-02-25 Thread Crowder, Rod
Many thanks, this looks useful. I appreciate the help as this is slightly OT Regards Rod Crowder The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) are confidential and may contain privileged

Help with learning VB Script (Please don't shout at me)

2003-02-25 Thread Crowder, Rod
As I said, please don't shout at me A situation has arisen at work, where a new application which has been bought requires VB script to do pattern matching and string modification. Yes I know that it is easier in Perl, (and the app supports perl) but the PHB has decreed that the VBscript route

RE: bitwise?

2003-02-24 Thread Crowder, Rod
Hi Your example is AND'ing the results of the two matches, so will return true if both matches occur. An example of comparing characters using the bitwise AND and the result might help, or confuse you more thoroughly :) hth Rod my $a = "a"; my $A = "A"; my $B = "B"; foreach ($A,$B,$a) {

Test message plz delet without wasting time reading it

2003-02-19 Thread Crowder, Rod
The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) are confidential and may contain privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or

RE: substitute for NTs "net use"

2003-02-17 Thread Crowder, Rod
The Win32::NetResource Module will let you mount remote share use Win32::NetResource; use strict; use warnings; my$RemoteShare = { 'LocalName' => "Q:", 'RemoteName' => "server\\share", }; my $UserName = "user"; my $Password =

RE: Help - Trying to use File::Spec module

2003-02-14 Thread Crowder, Rod
> -Original Message- > From: Gazi, Nasser (London) [mailto:[EMAIL PROTECTED]] > Sent: 14 February 2003 15:07 > To: [EMAIL PROTECTED] > Subject: Help - Trying to use File::Spec module > > > I'm trying to use the catfile method in the File::Spec > module. The following > program (called

RE: chomp

2001-12-19 Thread Crowder, Rod
No, chomp removes any "\n" at the end of a string. see perldoc -f chomp Rod -Original Message- From: Purshottam Chandak [mailto:[EMAIL PROTECTED]] Sent: 19 December 2001 08:05 To: [EMAIL PROTECTED] Subject: chomp If I type, $date = 19990417; chomp $date; - will every variable c

RE: Working with Perl Modules

2001-12-07 Thread Crowder, Rod
Do you have Active State's perl? The package is available using PPM from their repository, and shouldn't need any compilation. -Original Message- From: Sharat Hegde [mailto:[EMAIL PROTECTED]] Sent: 07 December 2001 06:45 To: [EMAIL PROTECTED] Subject: Working with Perl Modules Hello, I

RE: Re[2]: create an NT user with Perl

2001-12-04 Thread Crowder, Rod
Here Is a sample user setup script (A work in progress) which I wrote for setting up new users. Win32::AdminMIsc is available from www.roth.net and is well worth a look for anyone involved in the admin of a M$ notwork. Rod Crowder -Original Message- From: John Edwards [mailto:[EMAIL PR

RE: Outputing data for Excel / PDF

2001-11-26 Thread Crowder, Rod
Goto http://search.cpan.org and search for PDF, gives a number of modules relating to PDF files. I have not used these, so I can't make any recommendations. -Original Message- From: paul beckett (JIC) [mailto:[EMAIL PROTECTED]] Sent: 26 November 2001 15:02 To: [EMAIL PROTECTED] Subject: O

RE: writting in a file

2001-11-21 Thread Crowder, Rod
> -Original Message- > From: Franck Collineau [mailto:[EMAIL PROTECTED]] > Sent: 20 November 2001 13:57 > To: [EMAIL PROTECTED] > Subject: writting in a file > > > Hi! > > I have the follwing code: > > #!/usr/bin/perl -w > open(FIC,"/home/collineau/Perl/Programmes/01_informatique/sau

RE: witing to %ENV permanently

2001-11-19 Thread Crowder, Rod
The environment var you set is only available to the perl program and any child processes it produces. Try calling the Tecplot macros from within your perl program using system() or the backtick method. HTH Rod C -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

RE: Off-Topic (200%) - Where are you from?

2001-11-14 Thread Crowder, Rod
> -Original Message- > From: Michael Fowler [mailto:[EMAIL PROTECTED]] > Sent: 13 November 2001 21:15 > To: Elliott, Don (Police) > Cc: '[EMAIL PROTECTED]' > Subject: Re: Off-Topic (200%) - Where are you from? > > > On Tue, Nov 13, 2001 at 02:51:01PM -0600, Elliott, Don (Police) wrote:

RE: Redirecting STDERR to 2 locations simultaneously

2001-11-13 Thread Crowder, Rod
Try the Module IO::Tee, I haven't used it, but it's description sounds to be what you need > -Original Message- > From: Peter Scott [mailto:[EMAIL PROTECTED]] > Sent: 13 November 2001 07:01 > To: [EMAIL PROTECTED] > Subject: Re: Redirecting STDERR to 2 locations simultaneously > > >

RE: Off-Topic (200%) - Where are you from?

2001-11-12 Thread Crowder, Rod
Crawley, Sussex, UK (Next to Gatwick airport) > -Original Message- > From: PURMONEN, Joni [mailto:[EMAIL PROTECTED]] > Sent: 12 November 2001 14:10 > To: '[EMAIL PROTECTED]' > Subject: RE: Off-Topic (200%) - Where are you from? > > > hey, Yet Another Finn here as well (although currentl

RE: Getting a module to work

2001-10-30 Thread Crowder, Rod
> -Original Message- > From: Simon Rowan [mailto:[EMAIL PROTECTED]] > Sent: 29 October 2001 16:43 > To: [EMAIL PROTECTED] > Subject: Getting a module to work > > > Ok, I give up. How do I install a new module? > > I am using Activeperl 5.6 (Build 631) and have downloaded a module > Wi

RE: Use of XML::Simple and hashrefs

2001-10-05 Thread Crowder, Rod
Answered thesemy self, but in case it helps any one else > > Folks, > > I am using XML::Simple to let me parse a config file. I > include copies of > the code and the XML file in question. > > My question is how to get at the Project name values, in a > list or as the > keys to a hash. >

Use of XML::Simple and hashrefs

2001-10-05 Thread Crowder, Rod
Folks, I am using XML::Simple to let me parse a config file. I include copies of the code and the XML file in question. My question is how to get at the Project name values, in a list or as the keys to a hash. I have tried perldoc perlref, which has not helped me. Can anyone: a) show me how

RE: Copy file output to a text file

2001-10-04 Thread Crowder, Rod
Unless you need to create the file for any other reason, you should be able to use backticks to capture the output of the command to a variable, the simply ( yeah right :-) ), use a reg exp to strip it out eg $ConfigString = `ifconfig ppp0` The variable $ConfigString will now contain the outpu

RE: eval problem

2001-10-02 Thread Crowder, Rod
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 01 October 2001 15:16 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: eval problem > > > > > Hi everybody, > > I am facing a little problem with eval in perl. > > say I do the following:

RE: Windows drive mapping in perl

2001-09-27 Thread Crowder, Rod
Try the Roth Consulting Win32::AdminMisc Module, there's a whole shedload of W32 goodies http://www.roth.net/perl/adminmisc Don't know if this includes a "Map drive" function, but I have used some of these with great success Rod > -Original Message- > From: Chris Garringer [mailto:[EM

File::Basename Under W98

2001-09-27 Thread Crowder, Rod
I am trying to use the File::Basename module to strip off the suffix of a file, and use the base with different suffixes for output and log files. if I Give the file name "XYZData.txt", Basename returns the full name not the "XYZData" string, leaving me with a log file "XYZData.txt.log" Any Idea

PPM Errors after update

2001-09-26 Thread Crowder, Rod
I am running Windows 98, a rebuild of my machine after total failure. I found discrepancies between the modules that I had installed and what was showing in the on line docs. In an attempt to tidy up my configuration in PPM I ran verify --upgrade This seems to have broken PPM. It is reporti

RE: remote share disk usage for nt/win2k

2001-09-05 Thread Crowder, Rod
Here's something on those lines That I used with IIS The user must be a member of "Domain Admins" group It does a simple check of space left against a limit and highlights disks under the limit HTH Rod > -Original Message- > From: John W. Sims [mailto:[EMAIL PROTECTED]] > Sent: 30 Au

RE: sendmail and newlines

2001-08-24 Thread Crowder, Rod
> -Original Message- > From: Wendy DeCora [mailto:[EMAIL PROTECTED]] > Sent: 23 August 2001 16:13 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: sendmail and newlines > > > Situation: My perl script (see Code: below) is being > handed a flatfile (see File: below) generated from

RE: Strange foreach need..........

2001-08-24 Thread Crowder, Rod
Gary Do you need to read the file into the array, why not process the file directly eg while (<>) { $first = $_; $second = <>; chomp $first; chomp $second; # Do your stuff here printf ("First Line = %s, Second line = %s\n",$first, $second);

RE: inquiry

2001-08-21 Thread Crowder, Rod
> -Original Message- > From: webmaster [mailto:[EMAIL PROTECTED]] > Sent: 21 August 2001 14:48 > To: perl > Subject: inquiry > > > what does > Global symbol "@ARG" requires explicit package name at > testbio1.pl line 4. > Global symbol "$sbjct_scr" requires explicit package name at >

RE: perl debugger

2001-08-03 Thread Crowder, Rod
-Original Message- From: Ruth Albocher [mailto:[EMAIL PROTECTED]] Sent: 02 August 2001 10:56 To: [EMAIL PROTECTED] Subject: perl debugger hi all. Is there any good stable graphic debugger for perl? thanks Try the one in the ActiveState Perl Dev Kit. You can do

RE: Sending a mail using telnet 25 smtp(OT)

2001-07-24 Thread Crowder, Rod
A simple example of sending mail using telnet. this sends mail to [EMAIL PROTECTED] The bits you send are in braces {}, you do not type these!! Some hosts may be more fussy, they check that the hostname you give and the IP address match, and may only accept mail from a restricted list of hosts. se

RE: Sending a mail using telnet 25 smtp(OT)

2001-07-24 Thread Crowder, Rod
A simple example of sending mail using telnet. this sends mail to [EMAIL PROTECTED] The bits you send are in braces {}, you do not type these!! Some hosts may be more fussy, they check that the hostname you give and the IP address match, and may only accept mail from a restricted list of hosts. se

RE: Splitting string using split()

2001-07-17 Thread Crowder, Rod
There is a module Text::CSV_XS that handles (surprise!) CSV files, which understands quoted strings with commas. I can make it work, so it must be easy -Original Message- From: Mike Miller [mailto:[EMAIL PROTECTED]] Sent: 18 July 2001 02:47 To: [EMAIL PROTECTED] Subject: Splitting string