Growl is a notification system for Mac OS X. Pretty cool. You can call it from Carbon or Cocoa or AppleScript, and it comes with Perl and Python and Tcl bindings.
The problem is, the Perl bindings rely on Foundation.pm, which allows Perl programs to speak Cocoa, but Foundation.pm is only available if you are using the same major version and architecture of perl as ships with perl.
After trying for 20 minutes to find out how I could possibly do this using Cocoa or Carbon, I just tried this:
[pudge@bourque pudge]$ sudo gluemac
What is the glue name? [GrowlHelperApp]:
Created and installed App glue for GrowlHelperApp.app (GrowlHelperApp)
[pudge@bourque pudge]$ glue GrowlHelperApp '$g->notify(description => "la la la", with_title => "yo!")'
Of course, it worked.