RE: Why it prints twice?

2002-04-04 Thread John Edwards
Try $file="C:\\Program Files\\Apache Group\\Apache\\htdocs\\linux.htm"; open (IN, "$file") or die "Can't open $file: $!"; # ALWAYS CHECK OPENS while () { /.+<\/a>/; # This will act on the value of $_ which you are setting with while () print "$1"; # You can combine this into one line } c

RE: output graph to file

2002-03-26 Thread John Edwards
Try open (FH, ">/www/html/images/graph.png") || die "Could not create /www/html/images/graph.png: $!"; # Always check file opens binmode FH; # Set to binmode to prevent OS from mangling the data print FH $gd_image->png(); close(FH); HTH John -Original Message- From: Conan Chai [mailto

RE: Perl for Windows 98

2002-03-19 Thread John Edwards
6.1 on my Windows98 Lite (Windows 98 with 95 interface). Works I think. Just tested it with the simple example.pl script. At 04:26 PM 3/18/02 +0000, John Edwards wrote: > From the requirements for ActivePerl 5.6 > >Windows 98 > >Microsoft Windows Installer 1.

RE: Perl for Windows 98

2002-03-18 Thread John Edwards
few modifications. --i have no control over what OS they put on their laptops, but they did ask for Perl for Windows (Windows '98 no less). --so THAT is the *real* reason why i need Perl for Windows. -X -Original Message- From: John Edwards [mailto:[EMAIL PROTECTED]] Sure. The

RE: Perl for Windows 98

2002-03-18 Thread John Edwards
Sure. They're called Windows 2000 and Linux I wouldn't touch Win98 with a bargepole. Especially for developing on. As soon as you get a perl script that goes rouge and starts eating memory it will be much harder to kill off in Win98 than a proper OS. You could always install the 5.22 version

RE: popup_menu help

2002-03-06 Thread John Edwards
You can add some javascript code to the field's -onchange section. -Original Message- From: DUCHATEAU, GABRIEL [mailto:[EMAIL PROTECTED]] Sent: 06 March 2002 17:34 To: [EMAIL PROTECTED] Subject: popup_menu help Hi all, I hope somebody can help me here. I have a CGI script creating a po

RE: URL Fetcher Java/Perl

2002-03-06 Thread John Edwards
"I need a Java script" "I have a java script" This is a mailing list for *Perl* CGI. Do you have a question relating to Perl CGI? Would you like to share it with us? John -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: 06 March 2002 17:23 To: < Subject: URL Fetc

RE: Perl Equiv of URLEncode()

2002-02-27 Thread John Edwards
there is a function called escape() in CGI.pm which you can import. There is also an unescape function. use CGI qw(:standard escape); #^ Import function $text = "This is a test $£#{}-+"; print "Original text $text\n"; $escaped = escape($text); print "Escaped text $escaped\n"

RE: Perl help

2002-02-27 Thread John Edwards
What format log file? What format spreadsheet? What OS? -Original Message- From: Allison Ogle [mailto:[EMAIL PROTECTED]] Sent: 27 February 2002 14:42 To: [EMAIL PROTECTED] Subject: Perl help Hi, I am a beginner trying to write a program which will read information from a log file and w

RE: Global Constants in Perl ?

2002-02-19 Thread John Edwards
Yep. Use the constant function http://perlhelp.web.cern.ch/PerlHelp/lib/constant.html -Original Message- From: Stephen.Hurley [mailto:[EMAIL PROTECTED]] Sent: 19 February 2002 17:31 To: '[EMAIL PROTECTED]' Subject: Global Constants in Perl ? Hi, I was wondering if there was a way of d

RE: Perl regular expresions HELP!

2002-02-13 Thread John Edwards
foreach my $f ( @files ){ # Iterate through the @files array, foreach iteration set the value of $f to the next element of @files if( $f =~ /private/ ){ next; } # If the scalar $f contains the text "private", then stop this iteration and move onto the next one chomp $f; #

RE: Thumbnail images on-the-fly

2002-01-16 Thread John Edwards
I think you'll need to look at the image magik module for creating the thumbnails. I've looked at this in the past, and come away with headaches, but I believe it's the right tool for the job. Good luck John -Original Message- From: Scott R. Godin [mailto:[EMAIL PROTECTED]] Sent: 16 Janu

Streaming mp3

2001-06-28 Thread John Edwards
audio/mpeg (and I've tried audio/x-mpeg). The MIME type for the m3u is audio/x-mpegurl. Any ideas? Am I in the wrong list? Could someone give me a pointer to a more suitable list or resource for this if so. Thanks. John Edwards IT Support Runecraft Leeds Phone: 0113 2206317 Fax: 0113 220