- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] gzip from perl script
- From: Erik de Castro Lopo <erikd-slug@xxxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 14:50:13 +1000
- Organization: Erik Conspiracy Secret Labs
- Reply-by: Fri Mar 4 18:43:51 EST 2000
Jacinta Richardson wrote:
> Voytek wrote:
> > <quote who="Jacinta Richardson">
> >
> > unless( unlink("$backuppath/$database-$oldyear$oldmonth$oldday.sql.gz");
>
> Ah. Remove the trailing ; and replace with a ) {
Oh, cool, a Perl person.
One thing thats been bugging me for a while about Perl is the
lack of a butfirst keyword. This would be *really* useful for
constructs like:
{
# Huge chunk of code
}
butfirst
{
# Second huge chunk of code to be executed
# before the one above.
} ;
Sincerely,
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
"Incompetence, like misery, seeks company." -- Erik Naggum