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
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
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) {
my
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
The Win32::NetResource Module will let you mount remote share
snip
use Win32::NetResource;
use strict;
use warnings;
my$RemoteShare = {
'LocalName' = Q:,
'RemoteName' = server\\share,
};
my $UserName = user;
my $Password =
-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 test.pl):
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
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,
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
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:
-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/sauv
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:
-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:
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
I have
-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
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.
I have
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
-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:
$a = print
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 Ideas as
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:[EMAIL
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
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 August
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);
}
-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 a
-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
testbio1.pl
-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
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.
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.
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
telnet is not defunct, but is a very basic connection. Normally, connecting
to a unix or other multi-user system, you will have to login/logon with a
name and password in reply to prompts. Usually it comes with a built in
terminal emulator, mostly ansi or vt100, you can get other flavours like
30 matches
Mail list logo