Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2011 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/908526 to your computer and use it in GitHub Desktop.
Save anonymous/908526 to your computer and use it in GitHub Desktop.
package WebGUI::Form::MyOwnSpecialSelect;
use base 'WebGUI::Form::SelectList';
use Tie::IxHash;
# tell Perl that we're loaded and where from
# note that this code is in WebGUI/Asset/Wobject/WhatFileThisIsActuallyReallyIn.pm and WebGUI/Form/MyOwnSpecialSelect.pm only exists in our and perl's imagination
BEGIN { $INC{'WebGUI/Form/MyOwnSpecialSelect.pm'} = $INC{'WebGUI/Asset/Wobject/WhatFileThisIsActuallyReallyIn.pm'}; };
sub definition {
my $class = shift;
my $session = shift;
my $definition = shift || [];
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment