in reply to How to split long "use Foo::Bar" lines?
You could turn that into a module used likeuse File'Spec'Win32; # shorten it like so BEGIN { require join '/', qw[ Foo Bar Baz Really Long Module Name.pm ]; }
but that seems just dumb to me. Of course, cpan never disappoints (:use m 'Foo::Bar::Baz' . 'Really::Long::Module::Name';
update: Here's a better idea, have the magazine use line numbers
1: use strict;
2: ###<--- max column width --->###
3: use Foo::Bar::Baz::Really::Long+
::Module::Name;
4: use CGI;
...
update: thanks ysth, yes, I mean't Name.pm (typo fixed).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to split long "use Foo::Bar" lines?
by ysth (Canon) on May 25, 2004 at 07:56 UTC | |
|
Re: Re: How to split long "use Foo::Bar" lines?
by hardburn (Abbot) on May 24, 2004 at 16:00 UTC |