In the following code:
>>>
$string = "ab";
if ($string =~ /(ab[c$])/)
{
print "yes: $1\n";
}
>>>
what I'm trying to say is: "match $string IF it contains the letter a,
followed by the letter b, followed by either the letter c or the end of the
string".
But when I run the code, I get the
Could you use the Timer() object from Win32::GUI ?
-Original Message-
From: Wagner-David [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 4:27 PM
To: Wagner-David; 'Perl Win32'
Subject: RE: Any way to do a timed input on STDIN
I meant Term::ReadKey.
Sorry.
Wags ;)
-Original
Tuesday, April 03, 2001, 10:54:09 AM, Doyle wrote:
DJ> Hi All,
DJ> I have an interesting problem with paths and possibly virtual directory's in
IIS5, they are as follows:
DJ> If I use...
DJ> use lib "cgi-bin/lib/florence";
DJ> I cannot use.
DJ> require "cal.conf.pl";
DJ> As I woul
Grant Hopwood wrote:
> -start-
> ># creation of hash of arrays
> >$sth = &DoSQL($sql);
> >while (($item, $cost, $charge) = $sth->fetchrow_array()) {
> >push @{$costtable{$item}}, ($cost, $charge);
> >}
>
> >Using symbolic references "@{$varname}" is not recommended practice.
Hello Brian,
Tuesday, April 03, 2001, 7:48:16 AM, you wrote:
BS> I'd like to extend the use of templates a bit further by allowing the use of
BS> embedded files - sort of like what you get using SSI on a webserver. This
Have you looked at Template::Toolkit?
Here's a snip from the docs of some
Here's the script I used to figure out your question.
--
opendir(DIR, "/");
@files = readdir(DIR);
print "@files\n";
chdir("e:/");
opendir(DIR, "/");
@files = readdir(DIR);
print "@files\n";
--
When you run this you'll see that / refers root of the curre
-start-
># creation of hash of arrays
>$sth = &DoSQL($sql);
>while (($item, $cost, $charge) = $sth->fetchrow_array()) {
>push @{$costtable{$item}}, ($cost, $charge);
>}
>Using symbolic references "@{$varname}" is not recommended practice.
Perhaps a rethink of how you would li
-start-
> "Purcell, Scott" <[EMAIL PROTECTED]>
>at04/03/2001 09:29 AM
>Hello,
>From the perlreftut, I have some in which I am creating a hash of arrays
>where each array only has 2 values.
># creation of hash of arrays
>$sth = &DoSQL($sql);
>while (($item, $cost, $charge) = $sth->f
"Purcell, Scott" wrote:
>
> Hello,
> >From the perlreftut, I have some in which I am creating a hash of arrays
> where each array only has 2 values.
>
> # creation of hash of arrays
> $sth = &DoSQL($sql);
> while (($item, $cost, $charge) = $sth->fetchrow_array()) {
> push @{$cost
I am running (walking?):
Windows 95b (4.00.950 B)
Internet Explorer (aka OS extension) 5.01 sp1 (5.00.3105.0106)
ActiveState Perl binary 522 (Perl 5.005_03) with ActiveState PPM-supplied
extensions
Microsoft Word 97 SR-2
I am editing in TextPad (www.textpad.com) 4.4.1 and have configured an
op
As stated in my email it is extremely important in this case to use this
method /something/something. I have used your method before but it won't
work in this scenario. My specific question was how to tell perl where /
was and what drive it applied to, or to see if it was just the current drive
Hi All,
I have an interesting problem with paths and possibly
virtual directory's in IIS5, they are as follows:
If I use...
use lib "cgi-bin/lib/florence";
I cannot use.
require "cal.conf.pl";
As I would expect to, I have to use.
requ
"Cornish, Merrill" wrote:
>
> I have noticed several times in the last week that if I use Netscape 4.6 to
> try to look at the list of PPM packages available from ActiveState
> (ActivePerl/status.html), Netscape loads up to about 97% of the file, then
> freezes. The window can't be moved and Tas
this is what I use for paths in perl for win32
c:\\folder\\folder\\filename.txt
I backtick the "\" with another "\"
Also, when you go to map a drive, I use the system function
and the "net use" command (I know there is probably a module
you can download in perl to do this.)
Here is an exam
Hi,
First Question: I have a program that relies on this type of UNIX
compatible path convention, i.e.. /somedir/someplace/somefile, instead of
'C:\somedir\someplace\somefile'. This seems to work okay when I only have
one drive, say drive c, but what changes say when I have a drive S:
Hello,
>From the perlreftut, I have some in which I am creating a hash of arrays
where each array only has 2 values.
# creation of hash of arrays
$sth = &DoSQL($sql);
while (($item, $cost, $charge) = $sth->fetchrow_array()) {
push @{$costtable{$item}}, ($cost, $charge);
}
# s
[EMAIL PROTECTED] wrote:
>
> Using Win95b, Word 97 sp2, AS Perl 5.005_03
>
> Ok, I modified my suggestion below to work with Word. It works; however,
> if it starts a new instance of Word, the script will not exit until that
> instance is terminated. (Note that script statements after the invo
Any of the newer ones with kernel >= 2.4 and Xfree >= 4.0.1.
I like Mandrake 7.2. Check out the little demo:
http://www.linux-mandrake.com/en/demos/Demo/Mandrake7.2/QuickLook/
For those of you who haven't seen Linux in a while, the above will open your
eyes.
- Mark.
> -Original Message
I have noticed several times in the last week that if I use Netscape 4.6 to
try to look at the list of PPM packages available from ActiveState
(ActivePerl/status.html), Netscape loads up to about 97% of the file, then
freezes. The window can't be moved and Task Manager declares it to be "not
resp
The functionality you are talking about is strictly and Excel issue. Given
that this is a perl mail list the question probably should not be posted
here.
The functionality accomplished by activating the cell where you want the
colums to remain static and then use the tab Window |Freeze Panes
Jan,
Given a lot of research, I have been able to duplicate most of an Excel
spreadsheet one of my manager's uses with Perl and OLE. The one item I
haven't be able to duplicate is that when you scroll horizontally, the first
two columns stay in place and only the other columns move.
As nearly a
David Armstrong wrote:
> Could anyone please show how to include another perl file used as a
> configuration script
Probably with either 'do' or 'require'. `perldoc -f do`, `perldoc -f
require` to read about the difference.
> i have used the code below in linux and it works fine but on
> portin
Charles Pelkey wrote:
> $_ =~ s/{(.*?)}/${$1}/g; # Find variables in the form of
> {var_name} and replace with $var_name
Eek -- symbolic references.
> Does anyone have an idea of how to fix this???
Use a hash :)
s/\{([^}]*)\}/$var{$1}/g;
Should replace {Full_Name} with $var{'Full_Nam
Henning Michael Møller-Nielsen wrote:
> Is there any commonly accepted way of sending Unicode
> characters through that good old e-mail system, without
> making the e-mail HTML/XML formatted?
>
> Like sending character #8220 in an e-mail?
I would guess the standard way would be to use MIME and
Hi Everyone:
Some time ago, I re-wrote my Perl-driven forum script to use templates for
all HTML output (i.e. instead of embedding HTML code within the script, I
placed it in separate files, which are parsed whenever the script needs to
output HTML code). Tags are used to identify locations wher
25 matches
Mail list logo