RE: passing an argument to a subroutine

2003-09-08 Thread Mike Harrison
Hi all, I'm a bit late for a reply, but thought it would be appropriate to ask Babs exactly what was required from the perl program. Did you want to print the number of elements in the array, or print each element in the array? As Andrew Brosnan explained, setting a scalar equal to an array name

RE: Perl line breaks

2003-08-14 Thread Mike Harrison
his one :( Regards, Mike. -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: Wednesday, 06 August, 2003 2:30 AM To: Jon Hogue Cc: Mike Harrison; 'Andrew Brosnan'; [EMAIL PROTECTED] Subject: Re: Perl line breaks For troubleshooting a script you can take

RE: Perl line breaks

2003-08-10 Thread Mike Harrison
Hi All, Well, I have fixed the problem. I converted the messy html output from a series of ugly print statements (complete with escaping for every " character) to a heredoc as follows: print <mailto:[EMAIL PROTECTED] Sent: Wednesday, 06 August, 2003 7:44 PM To: Mike Harrison; Jon

RE: Perl line breaks

2003-08-06 Thread Mike Harrison
e BODY and HTML sections. sub HTML_ender { print "\n\n\n"; # Print the copyright information print "\n"; print "\n"; print "  Copyright © 2003. All rights reserved.\n"; print "\n"; print "\n"; # End the html section

RE: Perl line breaks

2003-08-04 Thread Mike Harrison
ver, it doesn't require the full path. The -w to warn of errors/mistakes etc.) I will need to wait till tonight before sending some of the perl program and header info... Cheers, Mike. -Original Message- From: Andrew Brosnan [mailto:[EMAIL PROTECTED] Sent: Tuesday, 05 August, 2003 10:03

Perl line breaks

2003-08-04 Thread Mike Harrison
Hello all, Well, I have spent the last few nights messing around trying to work out why one of my PERL programs doesn't work. If anybody can shed some light on this, I might be able to get some sleep :) I am using a hosting service to host my web site, and they use a Microsoft NT-based server

File uploading

2003-07-17 Thread Mike Harrison
Hello, I have a perl program that allows a user to upload a file (either .jpg or .gif) to the server, and returns a message if it exceeds a specified size (in my case 100kB). Currently (and don't laugh - I am new to perl), I go through the motions of uploading the file in 1024-byte blocks (in bi