Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

must be scalar (not hash elem) #181

Closed
p5pRT opened this issue Jul 12, 1999 · 1 comment
Closed

must be scalar (not hash elem) #181

p5pRT opened this issue Jul 12, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Jul 12, 1999

Migrated from rt.perl.org#986 (status was 'resolved')

Searchable as RT986$

@p5pRT
Copy link
Author

p5pRT commented Jul 12, 1999

From ian@dial.pipex.com

% perl -e 'sub eququ(\$$) { ${$_[0]} = $_[1] unless defined ${$_[0]} } eququ $hash{$a}, 1;'
Type of arg 1 to main​::eququ must be scalar (not hash elem) at -e line
1, near "1;"

Err, why?

Especially as
  C<for($hash{$a}) { eququ $_,1 } >
works as required, i.e. sets the 'hash elem' as expected.

BTW, perlbug has its 'perl' executable hardwired to be the perl that
Configure thinks is installed (/usr/local/bin/perl) rather than
the perl I'm actually using (i.e. first "perl" on my PATH), which is is
different. This may be a feature, but it means that the info below the
line is useless.

Perl Info


This perlbug was built using Perl 5.00404 - Sun Apr 26 12:56:41 BST 1998
It is being executed now by  Perl 5.00557 - Sun Jun 27 21:44:07 BST 1999.

Site configuration information for perl 5.00404:

[deleted as irrelevant]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant