Re: Re: Failed in package programme, how do I use package and object?

2001-06-24 Thread Me
[everyone, please keep posts on list] I'm programming a registration editing produce for my site, I want to bind many of same subroutine into a library, and reuse these routines in same case. You don't need to use objects at all. You can just use the package and module concepts. You can

Re: Failed in package programme, how do I use package and object?

2001-06-23 Thread Me
I'm try my best And you had 99% of it right. package pt; use 5.; $a=ok; #for public using $b=It's; # I don't know why put the newsubroutine in this package, # perhaps, it is a constructer, I copy from PERL's manual, # but it seem don't do anything. Most of what you wrote is

Re: Failed in package programme, how do I use package and object?

2001-06-23 Thread Me
Good job I decided to write this as two posts. Most of what you wrote is redundant in this particular case. You could have written: (I was just refering to the constructor, btw.) package foo; sub bar { bless \$qux }; . . package waldo; $emerson = foo-new; That