Re: Connecting to an Access DB

2002-10-16 Thread Simon Oliver

kaleb murphy wrote:
 
 I'm wondering if anyone can point me to the correct
 drivers for MSAccess's ODBC drivers.  I tried
 installing MS's MDAC 2.7, but I still get a #34;no MS
 Access driver found#34; error.

Are the drivers listed in the ODBC administrator?  If so they are
installed.

Let's see your script (or a cut-down version that fails).
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: help with text

2002-10-16 Thread Malcolm Debono

Hi,

This is going away a bit from my first question but it is what I eventually
would like to do.

Is it possible to let me have a snip of code from the HTML  Perl script.
What I would hope for is something like,

HTML form say Aform.html submitted to Ascript.cgi which collects information
and passes it to another cgi script say Bscript.cgi on a different host (if
possible).

Thanks again.

Malcolm
- Original Message -
From: Krishna, Hari [EMAIL PROTECTED]
To: 'Malcolm Debono' [EMAIL PROTECTED]; Krishna, Hari
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, October 15, 2002 3:03 PM
Subject: RE: help with text


 Have you ried this kind of stuff...
 Response.Redirect http://www.xyz.com/cgi-bin/YourPERLScript.pl?domain=; 
 domain123  password=  password123  uname=  username1

 The domain, password, uname are all hidden fields.

 Let me know if this is the kind of stuff you are looking for. This is how
I
 pass values to the PERL Script form the ASP page.
 Inside the PERL script, I write HTML to redirect to somother page (say
 confirmation page) using the same stuff Response.Redirect statement.
 Again, you can declare some hidden fields inside HTML in your PERL script
 which you can pass to other pages.

 Hari..

 -Original Message-
 From: Malcolm Debono [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 15, 2002 08:58 AM
 To: Krishna, Hari; [EMAIL PROTECTED]
 Subject: Re: help with text


 Yes good question,

 I haven't found out how to pass the information to another cgi script on
 another host yet, I want to do that but I am still learning I would
 appreciate help if that can be done.
 In the meantime I have got to the stage where I submit the first form
which
 collects the information passes it back to the browser which has another
 submit button that submits to a different script on another host (yes it
 would be easier if I knew how to call a script from the first)

 Malcolm
 - Original Message -
 From: Krishna, Hari [EMAIL PROTECTED]
 To: 'Malcolm Debono' [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Tuesday, October 15, 2002 2:42 PM
 Subject: RE: help with text


  Can I ask you as why you are passing to browser to pass it to the next
  script(PERL) instead of the script itself?? If you are talking of ASP..
 
  -Original Message-
  From: Malcolm Debono [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 15, 2002 04:41 PM
  To: [EMAIL PROTECTED]
  Subject: help with text
 
 
  Hi,
 
  Can someone please help. I have been trying to get a script to read from
a
  form take the text from a field, write it to the browser, with the
hidden
  fields pass the text to the next script.and so on.
  So far it does everything I need, writes to browser
 
  The Cat Sat On The Mat.
 
  but the hidden fields read:-
 
  the cat sat on the mat
 
   input type=hidden name=description value=the cat sat on the mat 
  size=60br
 
  SHOULD BE:-
 
  input type=hidden name=description value=The Cat Sat On The Mat 
  size=60br
 
  Question is:- HOW DO I FORCE IT TO WRITE THE TEXT WITH THE UPPER  LOWER
  CASE??
 
  Help is appreciated
 
  Malcolm
 
  ___
  Perl-Win32-Users mailing list
  [EMAIL PROTECTED]
  To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
 
  CONFIDENTIALITY NOTICE:
  This e-mail message, including all attachments, is for the sole use of
the
  intended recipient(s) and may contain confidential and privileged
  information. You may NOT use, disclose, copy or disseminate this
  information.  If you are not the intended recipient, please contact the
  sender by reply e-mail immediately.  Please destroy all copies of the
  original message and all attachments. Your cooperation is greatly
  appreciated.
  Columbus Regional Hospital
  2400 East 17th Street
  Columbus, Indiana 47201
 
 


 CONFIDENTIALITY NOTICE:
 This e-mail message, including all attachments, is for the sole use of the
 intended recipient(s) and may contain confidential and privileged
 information. You may NOT use, disclose, copy or disseminate this
 information.  If you are not the intended recipient, please contact the
 sender by reply e-mail immediately.  Please destroy all copies of the
 original message and all attachments. Your cooperation is greatly
 appreciated.
 Columbus Regional Hospital
 2400 East 17th Street
 Columbus, Indiana 47201
 ___
 Perl-Win32-Users mailing list
 [EMAIL PROTECTED]
 To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs




___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: help with text

2002-10-16 Thread Aaron Trevena

 HTML form say Aform.html submitted to Ascript.cgi which collects
information
 and passes it to another cgi script say Bscript.cgi on a different host
(if
 possible).

Use the LWP modules particularly perldoc (www.perldoc.com, select modules in
CPAN) LWP::UserAgent, this allows you to submit forms and get the result
back in a perl script or module, it also allows for things like logging in,
accepting cookies, etc.

regards,

A.



___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Per and MQ

2002-10-16 Thread Mundell, R. \(Ronald\)








Good Day All



Does anyone know if there is a module for perl to talk to
IBM's MQ series?



Ronald Mundell

EMAIL: [EMAIL PROTECTED]
  105 West Street

Ground Floor 

B-Block

Room: BG3

Phone:  881-3751(Office)

083 411
1107(Mobile)










Perl dev kit v5

2002-10-16 Thread Beckett Richard-qswi266

Anyone know when V5 is due out?

I want to buy the Dev kit, but like the look of the extra features in v5,
and will only get 1 chance to buy it through work.

Thanks.

R.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Help about module Win32::Gui

2002-10-16 Thread Bruno FABLET

is there a good help about this module (Win32::GUI)
?
Thx.

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Auto Flush in Windows

2002-10-16 Thread parvez

Hi Gurus,
 Is there any way that I can clear the command buffer on Windows,
like I can do in Linux :

$| = 1;  ## one method
 STDOUT-autoflush(1); ## another method

Can anybody please suggest the better method of the above two and
why? Secondly is it possible to do it on Windows?


Thanx,
Parvez

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Why cannot compile Unicode::Map8 under Windows and Visual C?

2002-10-16 Thread Rudenko

Dear friends, please help with the deadlock. I have Open Perl 5.6,
Windows 98, Visual C++ 6.0; all works perfectly. Downloaded and
compiled a few modules from cpan.org and then compiled them WITHOUT
ANY PROBLEM, in particular Unicode::Map and Convert::Cyr. But
Unicode::Map8 (version 0.11) failed to compile: the process stopped on
97th line with diagnosis:

my_perl: undeclared identifier
left of -IStdIO' must point to struct/union

The point is in the line:

ch=PerlIO_getc(f);

If I comment it out, the process goes smoothly and I get a working
(but useless) dll. ;-( What is the problem? Maybe somebody could send
me the compiled dll or the whole module. My Email: [EMAIL PROTECTED]

Thank you in advance!

Alexei Rudenko


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Win32::GUI or FindBin under Windows 95?

2002-10-16 Thread Morbus Iff


Has anyone had any difficulty using Win32::GUI v0.665 under Windows 95? My
current code base works perfectly under Windows 98 and up, but nothing
seems to happen (double-click, hourglass for a second, no hourglass) under
95. I've yet to do adequate testing/debugging, but I know that the last
working Win95 version I had was using .502.

Or, on the other hand, anyone know of issues with FindBin? My previous
working version was using simply use lib ./lib, but the newest version
(again, which works everywhere on Win98 and up) uses FindBin exclusively.

The sad thing is, my only Win95 box is an old laptop - 66mhz with 8 megs of
RAM. It takes me about 15 minutes to get one response out of my
application, and it's making debugging this thing a flippin' nightmare.

Thoughts?

-- 
Morbus Iff ( shower your women, i'm coming )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
Tech: http://www.oreillynet.com/pub/au/779 - articles and weblog
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Re: Help about module Win32::Gui

2002-10-16 Thread (Aben) Roman Fordinál

Dobrý den,
16. október 2002, 11:27:29, napsal jste:

BF is there a good help about this module (Win32::GUI)
BF ?
http://dada.perl.it/gui_docs/guipacks.html - very good :)

-- 
S pozdravem,
 (Aben)
 [EMAIL PROTECTED]

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Re: Help about module Win32::Gui

2002-10-16 Thread Johan Lindstrom

At 11:27 2002-10-16 +0200, Bruno FABLET wrote:
is there a good help about this module (Win32::GUI)

Nope.

But there are incomplete docs, sample files to look at, and a pretty 
responsive mailing list.


/J

 --  --- -- --  --  -- -  - -
Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED]

Latest bookmark: SourceForge.net Project Info - Perl Direct Conn...
http://sourceforge.net/projects/pdcc/
dmoz (1 of 30): /Arts/Music/Styles/Rock/ 44


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Re: RE: help with pdf file download?

2002-10-16 Thread cerberos

Thanks Josh for noticing that typo.
unfortunately that's not the problem. 

I simply cut'n'pasted the wrong version of code yesterday (I had many different 
attempts with various methods and I tried at the end to have a separate case for PDF 
which at the end I aborted forgotting to change it back to 'eq').

My original correct code is: 
if (-B $file) { #binary file...
 
   $file =~ m|(.*/)(.+)\.([^\.]+)$|;
   my $ext = $3; my $mimetype;

   #most common mime types
   if (uc($ext) eq PDF) { $mimetype=application/pdf;}  
   elsif (uc($ext) eq DOC) { $mimetype=application/msword;}
   elsif (uc($ext) eq PPT) { $mimetype=application/powerpoint;}
   elsif (uc($ext) eq ZIP) { $mimetype=application/x-zip-compressed;}
   elsif (uc($ext) eq EXE) { $mimetype=application/octet-stream;}
   elsif (uc($ext) eq EPS) { $mimetype=application/postscript;}
   elsif (uc($ext) eq PS)  { $mimetype=application/postscript;}
   elsif (uc($ext) eq GZ)  { $mimetype=application/x-gzip;}
   elsif (uc($ext) eq LATEX) { $mimetype=application/x-latex;}
   elsif (uc($ext) eq TAR) { $mimetype=application/x-tar;}
   elsif (uc($ext) eq EXE) { $mimetype=application/octet-stream;}   

  my $size = -s $file;

 
  open(INFILE, $file) || die img_not_found;
binmode(INFILE);
binmode(STDOUT);
print Content-type: $mimetype\n\n;
while (INFILE) {
print $_;
}
close(INFILE);
   

  } #binary mode file


The mime type is correctly set (I am sure as I debugged it step by step and printed 
out everything at each step). 
The output (downloaded file) is perfectly working for .doc files and for .zip files 
(the ones I tried).

But for PDFs, the output is all the time a 2kb with the PDF header and binary parts. 
But nothing to do with the original PDF. 

Any suggestions? I tried with an IIS server on WinNT and Sambar server on WinNT. 
Can anyone test the code above or give further suggestions?

Thanks

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Re: Memory consumption

2002-10-16 Thread Johan Lindstrom

At 17:39 2002-10-15 -0700, Mike Gossland wrote:
I used Win32::SystemInfo to show free memory available. I was surprised to 
see how much memory was consumed on each pass. By cutting out sections of 
code, I was able to see exactly what was consuming the memory. I found 
that LWP ate up a bunch, and substitutions ate up more.

Sounds weird. perl -v says what?

Could you post a minimal piece of code to see if we can duplicate this?

I run spiders to fetch a LOT of urls from dmoz.org, and I don't have a 
general problem with this. Perhaps it's only noticed when there are huge 
files being fetched?

(
I do restart the program after n thousand urls though, because the memory 
of a large scalar can't be returned to the system, only reused by perl.

One problem I had was with HTML::Parse, where I had to break circular 
references myself in order to release the memory of a parsed document.
)


During my tests on Windows, I found that up to 1 MB was being consumed 
each time through the loop! I found that my output results file was close 
to 1MB at this time. I was updating the results file by slurping the whole 
thing into memory, doing a substitution and
writing it back out again. By changing it to read one line at a time, 
while writing to a different filehandle, the consumption dropped to almost 
zero. Okay, maybe my first method was wasteful, but I didn't expect the 
memory to be used just once!

What does the s/// look like?


I was very surprised to see that when I finished with the memory (by it 
going out of scope, or being undefined, or set to ), it wasn't being 
returned for re-use, but that's the way it worked.

One thing I noticed with Windows perl is that it seems like memory is 
effectively released when minimizing the console window. At least that's 
what it looks like in the Task Manager. Don't know the relation to the 
internals of perl's garbage collection etc, or if it's just something 
reported by the Task manager. It happens with other programs as well it seems.


/J

 --  --- -- --  --  -- -  - -
Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED]

Latest bookmark: SourceForge.net Project Info - Perl Direct Conn...
http://sourceforge.net/projects/pdcc/
dmoz (1 of 30): /Arts/Music/Styles/Rock/ 44


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs