Re: manual bless

2002-12-12 Thread Ruth Albocher
Nigel Wetters wrote: > On Wed, 2002-12-11 at 13:55, Ruth Albocher wrote: > > I need to "cast" a scalar reference (SCALAR0x) into a reference to > > an object that I can use. (in other words, bless it). > > How can I do it? > > my $object = bless $sca

manual bless

2002-12-11 Thread Ruth Albocher
Hi all. I need to "cast" a scalar reference (SCALAR0x) into a reference to an object that I can use. (in other words, bless it). How can I do it? thanks, ruthie -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

data types

2001-12-05 Thread Ruth Albocher
hi all I wish to use variables of type: double/long (but not float!) binary numbers and casting strings to binary unsigned integers(doubled would be better!) can somone point me in the right direction? thanks ruthie -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

global variables

2001-09-24 Thread Ruth Albocher
Hi. I would like to use a global variable in my perl application, but since everything in perl is in a package, it will always belong to some package. what can I do? thanks, ruthie -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

looking for tips on using global objects

2001-09-20 Thread Ruth Albocher
Hi all. I am writing an application in perl and I would like to have it print things out into global 'Report' objects(warning, error, result reports etc). In general, I like to think of my reports as tools the applications uses constantly, but are not a part of it. Well, creating instances of t

strict pragma and @ISA

2001-09-04 Thread Ruth Albocher
hi all. I am trying to use the strict pragma in all my perl files, but when i use it with @ISA I get: Global symbol "@ISA" requires explicit package name at ...pm line .. like any other variable that should be declared. I understand that @ISA is not local, but this is how it is put in all the ex

perl debugger

2001-08-02 Thread Ruth Albocher
hi all. Is there any good stable graphic debugger for perl? thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: string vs 'string' parameters

2001-07-19 Thread Ruth Albocher
Paul wrote: > --- Ruth Albocher <[EMAIL PROTECTED]> wrote: > > > > create_unit(SDunit, 'SDunit_name'); in create_unit function: my $self = shift; my $type = shift; my $name = shift; my $unit; $unit = $type->new(stuff...);

string vs 'string' parameters

2001-07-18 Thread Ruth Albocher
hi can you please tell me what is the difference between the two parameters in the call: create_unit(SDunit, 'SDunit_name'); (it is code i need to maintain... ) (if it helps, then in the create_unit function, i get my $self = shift; my $type = shift; my $name = shift; my $unit;

stringify question

2001-06-11 Thread Ruth Albocher
hi I have started learning perl recently as I need to maintain someone's old code. under 'use overload' along with other 'normal' overloaded operators he has: qw("", stringify) i understand each word separately.. but.. where's it invoked and how? is there a recommended site i can look things like