As specified in the Net::Telnet docs, your prompt should be a match string.
Try something like:-
prompt =>'/c:.*?>/' #untested on a full session but does not throw an error
when called as below
Andy
- Original Message -
From: "Satish Vadlamani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]
Denis
I think this will do the deal for you:-
$tagger = "See SAY_PLEASE_TXT and SAY_HELLO_TXT.";
$tagger =~ s/\b([A-Z]+_[A-Z_]+)\b/^$1^/g;
print "$tagger\n";
Andy
- Original Message -
From: "Denis Pleic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 5:49 PM
Ronnie
Absolutely, Yes - 2000 and 97 use different versions of the Jet database
engine and hence a different ODBC driver, although the later driver is meant
to be, somewhat, backward compatible. There is no way, that I know of, to
have the same driver accessing both types of file successfully wit
Chris
I laughed my ass off when I read this about the 'young lady' syndrome,
because it's just so true.
I was just thinking the same thing the other week! :-)
Too darn funny.
Just think how many more detailed, patient and considerate answers they
could get if they included a site URL in th
Stupid question of the week:-
:-)
Anyone had any problems (or success) writing a forking Tk script.
I get loads of 'unable to release shared object' errors in Tk.pm (line 96 if
memory serves me right) when trying to deal with forking and everything
eventually crashes and burns on me - my inclina
Mike
You don't even really need Eudora for this. It's pretty simple to have your
list of addresses in one text file, your message body in another and then a
script sucks them in and fires out mails to the mail server you specify.
Because a mail sending transaction is fairly linear and straightfo
> David
>
> You could certainly fork off the transfer process which reads the data.
You
> will then need an open pipe between the parent and child so the child can
> pass back the number of bytes read and any other info, so that you can
> update the progress bar in the parent. If the user hits '
then you may have an OS memory paging
problem.
hth - a bit anyway.
Andy
- Original Message -
From: "mmollenkopf" <[EMAIL PROTECTED]>
To: "Andy Jennings" <[EMAIL PROTECTED]>; "Perl Win32"
<[EMAIL PROTECTED]>
Sent: Sunday, May 27, 2001
David
You could certainly fork off the transfer process which reads the data. You
will then need an open pipe between the parent and child so the child can
pass back the number of bytes read and any other info, so that you can
update the progress bar in the parent. If the user hits 'cancel' then
Alan
Probably at least a snippet of code around the fork would be good. Also Perl
version/build and OS.
Andy
- Original Message -
From: "mmollenkopf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 26, 2001 10:01 PM
Subject: fork error??
> I keep running into an error
The only way I think you may be able to do this would be through frames and
you would need some persistent variables for the Perl script - maybe a
hidden text input var for where you are in the list.
Andy
- Original Message -
From: "steve silvers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED
Add a check for a word boundary to the start and finish of the old word
$_ =~ s/\b$oldWord\b/$newWord/g
hth
Andy
- Original Message -
From: "Rex Posadas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 11:42 AM
Subject: substitution on a file
> Hi,
>
> I'm tr
Title: PSCI_1
Paula
Most likely because the command returns a two byte
int and the return code is only setting the high byte bits with all the low byte
bits unset.
Dividing by 256 is the equivalent of 8 bitwise
shifts to place all the set bits in the low byte.
Andy
-
Jeremy
When you fork, the pid assigned to the child is a visible non-zero value in
the parent but to the child it is zero.
Therefore to execute code that is to be run in the child process you must
check the value returned by fork() is 0.
So the code you want to execute in the child process goes
Could you post the complete and exact error message plz together with the
code 3 or 4 lines either side of the error line #.
It sounds like more of a permissions prob but we need to know what you are
trying to do.
Andy
- Original Message -
From: "eo_pereira" <[EMAIL PROTECTED]>
To: <[EM
Gary
To grab the lines between tags and include the tags then you can use code
like the following:-
open(HTM, "file_to_scan.txt");
@lines = ;
close(HTM);
$longline = join "\n", @lines;
$longline =~ s/()//si;
print $1;
$result = $1;
$result now contains the first match in the file or
Bill
It looks ugly, I know, but it works...
$myvariable =~ s/\\rmcnt\\public/rmcntpublic
/;
Add the g option if there are multiple instances of the string to change in
the variable
Andy
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAI
James
I don't seem to have a problem with this on Textpad 4.3.1 32-bit version.
The settings I use are:-
Command: C:\Perl\bin\Perl.exe (or other location of Perl.exe)
Parameters: d:\scripts\intest.pl (or location of script to run)
and have the 'DOS command' box checked.
HTH
Andy
- Origina
Not sure about 'net info' but generally the 'net' group of commands deal
with services, networking and users - a list of currently running services
can be obtained by issuing 'net start' for instance.
To get a list of running processes you can use tlist.exe which I believe is
part of the NT resou
- Original Message -
From: "Andy Jennings" <[EMAIL PROTECTED]>
To: "jose quesada" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday, April 07, 2001 11:43 PM
Subject: Re: how to represent "any character" (incl. \n) in regexp?
&g
Try (.|\n) instead.
Andy
- Original Message -
From: "Bennett Haselton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 07, 2001 11:08 PM
Subject: how to represent "any character" (incl. \n) in regexp?
> Since according to p. 25 of "Programming Perl" by Wall, "." stand
Just a couple of things to add to what went before...
The best way to check your code when first written is to run with the -w
switch and/or 'use strict'.
perl -w myscript.pl
Activestate's builds of Perl will add file associations for .pl and modify
the search path if this is selected durin
22 matches
Mail list logo