Immediate IF

2003-01-20 Thread Nicole . Seitz
Hi there! Today just a short question: Is there an Immediate If-Function in Perl? Thanx for your help in advance! Nicole -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

hash of arrays

2003-01-12 Thread Nicole Seitz
hi there! I've got a problem with a complex data structure and hope you can help me. I know that I can't have a hash whose values are arrays. So I tried to build a hash of references to arrays. I guess I've made some mistakes . This is what my hash looks like: %myHash = (); # lots of code

OOP

2002-11-26 Thread Nicole Seitz
Hi there! I've just started to learn OOP with Perl.With the help of perltoot I wrote a class Person and some methods(see below). package Person; use strict; sub new { my $self = {}; my $proto = shift; my $class = ref($proto) || $proto; $self->{CNAME} = undef; $self

Re: Problem with hashes

2002-10-10 Thread Nicole Seitz
On Thursday 10 October 2002 19:32, you wrote: > I think your script is failing at the defined($line = ). So the > hash is not getting populated at all. I think this because your call to > open didn't include a <, as in > > open FH, "< your_file" or die $!; > > Try adding that to your open call a

Problem with hashes

2002-10-10 Thread Nicole Seitz
Hi there! I'm very new to Perl and just don't understand an error message I got.Hope you can help me. Now, the file I'm working with contains the following data: ;Structural Safety;Elsevier SD;;; ;Structural Safety (95 ... );ZB-HP;Elsevier;nur online (HGF); ;Subsurface sensing technologies and