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 1946 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 1866 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 1865 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 1860 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 1864 Aug 22, 2003, 8:29 AM