Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.

Quote Reply
Re: [Andy] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7. In reply to
Weeeeeel, of course this wouldn't work.

You are passing a scalar to the sub, and then you want to dereference the scalar....

In other words, just use

my $CatID = shift;

and leave out the my $tags bit.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Subject Author Views Date
Thread Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7. Andy 2832 Aug 22, 2003, 4:53 AM
Thread Re: [Andy] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.
yogi 2691 Aug 22, 2003, 8:06 AM
Thread Re: [yogi] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.
Andy 2676 Aug 22, 2003, 8:11 AM
Thread Re: [Andy] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.
yogi 2669 Aug 22, 2003, 8:15 AM
Post Re: [yogi] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.
Andy 2670 Aug 22, 2003, 8:29 AM