Ok, I give up.
Here's a little script that attempts to spawn child processes (using
Win32::Process) and capture the output from them.
### cut here ###
#perl -w
use Win32::Process;
use IO::File;
my $loopcount = 0;
while( 1 ) {
## Save existing
open SAVEOUT, ">&STDOUT";
open SAVEERR,
I think using javascript might be the easiest solution.
Let perl stuff all the info in one frame (the redirect)
and then use javascript to refresh the top-frame with
the appropriate number.
I need more details to give an example but this might
point you in the right direction.
regards...
Huub.
On 11 Feb 02, Ember Normand ([EMAIL PROTECTED]) wrote:
> I'm very interested to hear what else the perl porters list will say,
> because it looks like the only way to get the error is the original example.
>
> ($num1 % 1000) * 16777216;
>
> ie: (var_any_number % literal_numerical_constan
Stephen Patterson wrote, on Wednesday, February 13, 2002 2:00 PM
: I have a scalar variable which I need to run read() on, but read()
: runs only on a filehandle, and I'd like to avoid creating a temp file
: just for this one operation. Is there any way I can use the variable
: as if it were a fil
I have a scalar variable which I need to run read() on, but read()
runs only on a filehandle, and I'd like to avoid creating a temp file
just for this one operation. Is there any way I can use the variable
as if it were a filehandle?
--
Stephen Patterson http://www.lexx.uklinux.net/
[EMAIL PROTE
Hey Jude,
I had to do this same thing using Micro Focus/Microsoft COBOL format files a couple of
years ago. Couldn't figure out how to do it with perl, eventually ended up just
writing a dump program to reformat the COBOL data field into fixed-length ASCII that
could then be opened in Excel.
I am working on a web based program that does the following:
Gets user input, upon the 'POST' of the form the input is written into a
database, the a redirect occurs the loads a mutliframe page into the spot
where the data input originally occured. I need to pass a number that is
written
Steve,
How funny you should mention that, I come from a COBOL background and find printf to
be difficult to use compared to an edited PIC
clause. In fact, maybe that's an idea for a module...
Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters
636-922-9158 ext. 652 fax 636-447-4471
> Picked mine up at B&N yesterday, from the order I placed late
> last week.
> Looks good...
Yes, and good or not, like the Beginning Tk book that came out previously,
it's certainly better than nothing, which is what we had before. The
distributed documentation for Perl/Tk is shameful.
I laug
Thanks a lot.
I just tried it and it works.
ted zeng
- Original Message -
From:
Tom Allebrandi
To: [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 4:34
PM
Subject: RE: why System command returns
right away?
Let's step back a
second...
When y
Picked mine up at B&N yesterday, from the order I placed late last week.
Looks good...
--Will
Tillman, James wrote on Sent: Wednesday, February 13, 2002 8:58 AM
Subject: RE: Getting The Screen Size perl TK
> > Cheers Guys,
> >
> > I really wish Amazon would hurry up and send me my Advanced
> >
Rajesh,
Your problem sounds more to do with your Win98 installation than with Perl.
You shouldn't have needed to copy command.com to your "working directory",
that file should be in the root of your c drive and in c:\windows\system
directory and c:\windows\system should be in your path.
Check
Does anyone know how (if possible) to get Win32::Clipboard functionality
in a Citrix environment? Specifically, I would like a PerlSvc service to
be able to acces a specific users clipboard. A quick search and looking
through Dave Roth's book didn't get me anywhere.
Thanks in advance,
Steve
Unfortunately, to this day I spend time maintaining legacy COBOL programs!
The data resides in the .dat (data) and .idx (index) files, the others are
the equivalent of C header files. The .wks is memory declarations and may
not have all / the same information that exists in the data file. T
Dear Alistair,
I mean literal system restart. That is, whenever I am executing the external
commands as described in my original mail(I am sorry for the TYPO error but
I didn't make that mistake in the script) the system is literally getting
restarted/rebooted. I need to login again and start my
> Hello folks,
> Just a quick question regarding the development CGI programs.
> Does it make
> sense to create a single CGI program to handle several HTML
> forms or would
> it be reasonable to assume every form should have its own CGI
> to process its
> values?
The other guys have made grea
> Cheers Guys,
>
> I really wish Amazon would hurry up and send me my Advanced
> Perl/TK book.
> ;-)
>
> G
I went down to the local Borders this weekend and made them pull me copy out
of the box in the back. They hadn't even gotten it onto the shelves yet...
jpt
_
I would first determine if the .dat file extension is the file that contains the
actual data. You are fortunate that in the FD there
is not any type of packed (COBOL) data. In fact, you should always insist that the
data contain no packed fields, just straight
ASCII data. Next, depending on whic
Cheers Guys,
I really wish Amazon would hurry up and send me my Advanced Perl/TK book.
;-)
G
Marty
> -Original Message-
> From: John V. Pataki [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday 13 February 2002 16:42
> To: [EMAIL PROTECTED]; Martin Moss;
> [EMAIL PROTECTED]
> Subject: RE
Correction...
This is what I usually use
$mw{top} = int(($sh - $mw{height})/4);
But this will actually give you a centered app...
$mw{top} = int(($sh - $mw{height})/2);
I like a bit off higher up then actually at center.
John
-Original Message-
From: [EMAIL PROTECTED]
[ma
All,
I had a note from David Deline that supplied the missing piece. The
corrected scripts are appended. The changes are:
The script that generates the output needs to set $| = 1. This gets you
automatic flushing of the output data. This means, by the way, that unless
you can coerce the program
Ah-Hah!
It's all characters. "PIC XX" means a two-byte field, "PIC X(70)" means a
70-byte field. All you need is something like
($l_name, $f_name, $id1_num ...) = unpack 'A35A30A10...'
where the elipsis ("...") means "you fill in the rest."
Now figuring out what file to read and how to read
> quick question,
>
> if I wished to position a Main Window in the centre of the
> users screen, how
> would I get the Coordinates of the Centre of the screen?
you can get these using $widget->screenheight and $widget->screenwidth
But you may not need them since $mainwindow->Popup() will place
Marty,
This is how I do it...
# get the screen's dimensions
$sw = $mw->screenwidth;
$sh = $mw->screenheight;
# specify dimensions for your app window
# (this example is based on 75% of the screen dimensions)
$mw{width} = int($sw*.75);
$mw{height}= int($sh*.75);
# specify where the
24 matches
Mail list logo