GrandFather has asked for the wisdom of the Perl Monks concerning the following question:
Code of the form:
while (< $self->{fhFrom} >) {
is reported as a syntax error by Perl because it sees <$self-> as the diamond operator and contents - which doesn't quite Do What I Mean.
I can fix the problem by using a temporary variable to hold the file handle, but is there some obvious (or otherwise) syntactic construct I'm missing that allows me to use a file handle stored in a hash reference directly inside the diamond operator?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Seeking balance from the <> operator
by ysth (Canon) on Jun 18, 2008 at 07:41 UTC | |
Re: Seeking balance from the <> operator
by Anonymous Monk on Jun 18, 2008 at 06:11 UTC | |
Re: Seeking balance from the <> operator
by kyle (Abbot) on Jun 18, 2008 at 05:41 UTC | |
Re: Seeking balance from the <> operator
by graff (Chancellor) on Jun 18, 2008 at 05:33 UTC | |
by GrandFather (Saint) on Jun 18, 2008 at 07:04 UTC | |
Re: Seeking balance from the <> operator
by ferreira (Chaplain) on Jun 18, 2008 at 13:36 UTC |