Re: Date format again

2002-03-03 Thread Alfred Wheeler
$year is a number. Numbers do not retain leading zeros. "$year %= 100;" does not return the string "02"; it returns the number 2. Try something like this - $s_year = sprintf("%02u", $year); print "$s_year"; The sprintf function basically converts the number into a string. "sprintf returns a str

Re: I cant run perl from the dos command line

2002-01-21 Thread Alfred Wheeler
Hmm.You've probably already got it all figured it out by now, however - The message you report means the command processor cannot find perl. What changed recently? Did you type into the prompt exactly what you wrote below? If so, try C:\Perl\bin\perl.exe -w C:\Perl\eg\example.pl rabs wrote

Re: This Simple program won't work - why?

2002-01-12 Thread Alfred Wheeler
You have an extra angle bracket. Should be: open (INFILE, "> means append. < means read. << is just confusing... ;-) - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 11, 2002 1:16 PM Subject: This Simple program won't work - why? > > I am a

Re: your my last hope on this cgi programming question

2002-01-07 Thread Alfred Wheeler
This may help you - http://www.mycgiserver.com/ Hockey List wrote: >thats pretty much the main part of the problem. > >Like I said, Im not afrain of the cgi. Its the fact >that the server wont allow me access to the cgi bin at >all.. > >anyone know a free server for a cgi-bin? > > >--- John Edw

Re: Perl

2001-11-26 Thread Alfred Wheeler
Active Perl is for Microsoft Windows Perl at Perl.com is more general, but basically oriented for Unix like systems. - Original Message - From: "Purshottam Chandak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 26, 2001 2:43 AM Subject: Perl > Is there a major dif

Re: How to run DOS batch files or DOS commands in the Perl script

2001-11-09 Thread Alfred Wheeler
I'm not sure this answers your question... However - #!perl open IT, ">mybat.bat"; print IT "\@echo off\n"; print IT "echo Hello World!\n"; close IT; system ( "mybat.bat" ); - Original Message - From: "Jason-Yahoo" <[EMAIL PROTECTED]> To: "A. Rivera" <[EMAIL PROTECTED]>; <[EMAIL PROTECT