$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
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
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
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
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
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