Cymen’s Blog

Archive for the ‘Programming’ Category

Published PHPGatewayInterface to github…

leave a comment

I wrote a hopefully generic class in PHP to proxy CGI scripts. The idea being that sometimes one wants to get the output of a CGI script and do various things with it before displaying it. In my particular case, wrap CVSWeb so the output can be put into a HTML DIV.

The code is published on github as PHPGatewayInterface.

Written by Cymen

August 29th, 2009 at 11:51 pm

Posted in PHP

Regular Expression Tools

leave a comment

Regular Expressions tools:

Written by Cymen

June 13th, 2009 at 6:54 pm

Shooting Yourself in the Foot with Perl

leave a comment

Returning Multiple Values

$error, $hash = function_a( ... );
if ( $error ) { error(); }    // never runs

Correction:

($error, $hash) = function_a( ... );
if ( $error ) { error(); }    // runs on error

Written by Cymen

December 22nd, 2008 at 10:14 am

Posted in Programming

Tagged with