SPUG: Long module names and perl "classes"?

Abarbanel, Robert Robert.Abarbanel at pss.boeing.com
Fri Sep 3 14:01:40 CDT 1999


You know those class-name-strings are just that, strings.
You can say $s = "MyTopDir::MySubDir::MySubSubDir::MyObject"
and then
$newobj = $s->new()



> ----------
> From: 	Joe Slagel[SMTP:slagel at geospiza.com]
> Sent: 	Friday, September 03, 1999 10:47 AM
> To: 	spug-list at pm.org
> Subject: 	SPUG: Long module names and perl "classes"?
> 
> Does anyone have a cute way of dealing using long module
> names when referring to them as classes.  I'm tired of
> typing really long
> "MyTopDir::MySubDir::MySubSubDir::MyObject->new()" every
> time I want to create a new object.
> 
> - Joe
> 
> --
> +--------------------------------------+-------------------------------+
> |                                      | Geospiza, Inc.                |
> | Joe Slagel                           | 619 N 35 Street Suite 101M    |
> | mailto:slagel at geospiza.com           | Seattle WA, 98103             |
> | http://www.geospiza.com/people/joe   | (206) 633-4403                |
> |                                      | http://www.geospiza.com       |
> +--------------------------------------+-------------------------------+
> 
> 
> 
> 
>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>     POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
>  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
>  SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
>         Email to majordomo at pm.org: ACTION spug-list your_address
> 
> 

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
        Email to majordomo at pm.org: ACTION spug-list your_address





More information about the spug-list mailing list