<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - How do you export an enum? - Comments</title>
 <link>http://community.activestate.com/forum-topic/how-do-you-export-enum</link>
 <description>Comments for &quot;How do you export an enum?&quot;</description>
 <language>en</language>
<item>
 <title>How do you export an enum?</title>
 <link>http://community.activestate.com/forum-topic/how-do-you-export-enum</link>
 <description>&lt;p&gt;I just recently discovered the enum.pl Perl module and I would like to use it as well as be able to export an enum.  Does anybody know how I would do that?&lt;/p&gt;
&lt;p&gt;Let&#039;s say I have the following:&lt;/p&gt;
&lt;p&gt;package test;&lt;/p&gt;
&lt;p&gt;use strict;&lt;br /&gt;
use enum qw(Sun Mon Tue Wed Thu Fri Sat);&lt;br /&gt;
use Exporter;&lt;br /&gt;
use vars qw(@ISA @EXPORT);&lt;br /&gt;
@ISA = qw(Exporter);&lt;br /&gt;
# @EXPORT = ?????&lt;/p&gt;
&lt;p&gt;How can I assign something to @EXPORT so that an enum is available outside of the test module?&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/how-do-you-export-enum#comments</comments>
 <category domain="http://community.activestate.com/forums/perl-discussion-0">Perl discussion</category>
 <category domain="http://community.activestate.com/os/windows-xp-pro">Windows XP Pro</category>
 <pubDate>Thu, 29 Nov 2007 05:32:00 -0800</pubDate>
 <dc:creator>rvanes</dc:creator>
 <guid isPermaLink="false">1679 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
