On Wed, 29 Sep 2004 12:27:03 -0400, Bob Showalter <[EMAIL PROTECTED]> wrote: > Errin Larsen wrote: > > When I use the following in my code, it runs and > > works fine: > > > > use POSIX 'setsid'; > > use POSIX 'errno_h'; > > use POSIX ':sys_wait_h'; > > > > However, when I try to combine those into one line: > > > > use POSIX qw/setsid errno_h :sys_wait_h/; > > > > Then I get the following error: > > > > # ismon.pl > > ":errno_h" is not exported by the POSIX module at > > /usr/perl5/5.6.1/lib/sun4-solaris-64int/POSIX.pm line 19 > > > > ":sys_wait_h" is not exported by the POSIX module at > > /usr/perl5/5.6.1/lib/sun4-solaris-64int/POSIX.pm line 19 > > > > Can't continue after import errors at > > /usr/perl5/5.6.1/lib/sun4-solaris-64int/POSIX.pm line 19 > > BEGIN failed--compilation aborted at ./ismon.pl line 3.
<< SNIP >> > > Exporter only does the special :tag processing if the *first* entry in the > import list starts with one of the following characters > > : ! / > > So move :sys_wait_h to the front and it will work. > Thanks Bob, that did it. I wonder why that is about Exporter? It seems rather counter-intuitive to me. --Errin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>