Re: why does @array[$num, $num] have *two* elements?

2001-10-12 Thread Carl Jolley
On Fri, 12 Oct 2001, Bennett Haselton wrote: > Presumably affects all versions of perl -- but how come if you run: > > @array = ('a', 'b', 'c'); > print join(" ", @array[0,0]), "\n"; > > you get an array with *two* elements, i.e. the script prints "a a"? > > @array[0,0] ought to return an array w

RE: Text flow in PDF

2001-10-12 Thread Smith Eric D Contr ASC/YSXI
> Not really - all the PDF modules I've seen seem > to allow me to place text on the page, but only > at co-ordinates. I'd rather be able to place say > four paragraphs, and have the module flow them so > that they fit defined margins, that widows and > orphans are controlled, page breaks nicely

Re: Advice on posting .....

2001-10-12 Thread Stephen Patterson
On Thursday 11 October 2001 1:14 pm, Jackson, Vic wrote: > Hi, > > I posted my first query a week ago, but have not heard from > anyone(sob!) > > What is more important than this query is for me to understand the right > way of "doing things". > > So, this separate posting is asking for advice

RE: Embedding Perl

2001-10-12 Thread Bellenger, Bruno (Paris)
I guess your first port of call should be the VB SDK help files and documentation. Although I don't have the answer to your exact (current) question, here are some pointers that might prove somewhat helpful : You can have a look at WSH (the Windows Script Host), that allows you, via XML tags

RE: Text flow in PDF

2001-10-12 Thread Lee Goddard
> From: Morse, Richard E [mailto:[EMAIL PROTECTED]] > Sent: 12 October 2001 13:16 > To: 'Lee Goddard' > Subject: RE: Text flow in PDF > > > As I understand it, PDF does not define the concept of a paragraph -- PDF > works with characters, and it is up to the program to use the font metrics That

RE: Downloading file.

2001-10-12 Thread Krung Saengpole
My script works!!! but have to modify a little. Thank you very much. Krung. -- Original Message -- From: "Alexei Danchenkov" <[EMAIL PROTECTED]> Date: Fri, 12 Oct 2001 15:54:51 +0400 >Hi, Krung, >Apparently you didn't sent the actual file, only the header.

Re: Embedding Perl

2001-10-12 Thread Johan Lindstrom
MATA Tech wrote: >About two years ago I had heard that there were methods for >embedding VB in Perl. At that time, though, I was unable to find >any information on how to do it. Since that time, I have a desire to >embed Perl in VB, using VB just for GUI creation. Can it be done? You can creat

RE: Downloading file.

2001-10-12 Thread Alexei Danchenkov
Hi, Krung, Apparently you didn't sent the actual file, only the header. You need to read it from the file handle and print it out to your output stream. I assume this must be: use constant BUFFERSIZE = 65536; binmode $filehandle; binmode OUTPUT; # This is your OUTPUT stream while ( read ( $filehan

Embedding Perl

2001-10-12 Thread MATA Tech
About two years ago I had heard that there were methods for embedding VB in Perl. At that time, though, I was unable to find any information on how to do it. Since that time, I have a desire to embed Perl in VB, using VB just for GUI creation. Can it be done? And, if it can be done, does a

Downloading file.

2001-10-12 Thread Krung Saengpole
Hello all, I have a problem about sending file to user. I made one zip file containing one text file and send this file to user. User only receives the file but no content in it. What's wrong I made to this script? my script: $file="test.zip"; print <<"HeaderSent"; Content-Type: application/

Re: why does @array[$num, $num] have *two* elements?

2001-10-12 Thread Bennett Haselton
Yep. Oops. :) -Bennett At 12:01 PM 10/12/2001 +0100, Simon Oliver wrote: >You are confused. > >@array[$x,$y] returns and array of the two elements of @array with indexes >$x an $y. > >@array[$x..$y] returns and array of the elements between index $x and $y, >includive. > >-- > Simo

Re: why does @array[$num, $num] have *two* elements?

2001-10-12 Thread Simon Oliver
You are confused. @array[$x,$y] returns and array of the two elements of @array with indexes $x an $y. @array[$x..$y] returns and array of the elements between index $x and $y, includive. -- Simon Oliver Bennett Haselton wrote: > > Presumably affects all versions of perl -- but how come if

RE: Perl Win32 - disable cmd dialog popups?

2001-10-12 Thread Tillman, James
> I don't know a way to actually disable the popup, but you can at least > hide it. I did this in win2k, but there should be a similar method in > other versions. Make a shortcut to your script. When you run the > shortcut the first time, position and size the cmd dialog so that it's > behind y

why does @array[$num, $num] have *two* elements?

2001-10-12 Thread Bennett Haselton
Presumably affects all versions of perl -- but how come if you run: @array = ('a', 'b', 'c'); print join(" ", @array[0,0]), "\n"; you get an array with *two* elements, i.e. the script prints "a a"? @array[0,0] ought to return an array with *one* element, with that element being $array[0]. Thi

RE: Perlscript

2001-10-12 Thread Tillman, James
> I have a question. I wrote a perl script and included it into > an ASP page > using Perscript with no problem. > > The thing is that when I hit the refresh button of the web > explorer the page > doesnt come out. It comes out only the first time I load it. > What could be > the reason? Unle

RE: Text flow in PDF

2001-10-12 Thread Lee Goddard
Not really - all the PDF modules I've seen seem to allow me to place text on the page, but only at co-ordinates. I'd rather be able to place say four paragraphs, and have the module flow them so that they fit defined margins, that widows and orphans are controlled, page breaks nicely set out, y'k