Hey there, I'm not a total beginner to Perl, but am far enough into it to have a lot of questions, so I hope this is a suitable place for them :)
My current one is this. I have a method: sub getResponse { my $self = shift; my $fh = $self->{filehandle}; my $incoming = <$fh>; ... This works fine. However, the way I originally wrote it: sub getResponse { my $self = shift; my $incoming = <$self->{filehandle}>; ... gave me: syntax error at NeuralPerl.pm line 50, near "<$self->{" Compilation failed in require at ./testlib.pl line 7. BEGIN failed--compilation aborted at ./testlib.pl line 7. I tried various curly brackets none of which made a difference. It works fine the way I have it now, but I'm curious as to why I have to do it this way. Oh, another one that I have hit a few times; is there a nice way of doing what this looks like it means: sub mySub { $foo = shift; @bar = shift; %baz = shift; ... Currently I use things like @{ $_[1] } and so on, but I'm wondering if there is a way I can use shift. cheers (and hopefully I'll be able to help out a few people in return!:) -- Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]> Hostes alienigeni me abduxerunt. Qui annus est? PGP Key 0x776DB663 Fingerprint=DD10 5C62 1E29 A385 9866 0853 CD38 E07A 776D B663
pgp00000.pgp
Description: PGP signature