rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
It works well without but returns errors when I 'use strict'.#!/usr/bin/perl my @interests = ( "foo", "bar", "blah" ); foreach (@interests) { $$_ = "My interest is $_"; } foreach (@interests) { print $$_ , "\n"; } exit;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: use strict
by Abigail-II (Bishop) on Jun 01, 2004 at 12:58 UTC | |
by rsiedl (Friar) on Jun 01, 2004 at 14:21 UTC | |
Re: use strict
by dragonchild (Archbishop) on Jun 01, 2004 at 12:59 UTC | |
Re: use strict
by gjb (Vicar) on Jun 01, 2004 at 13:01 UTC | |
Re: use strict
by EdwardG (Vicar) on Jun 01, 2004 at 12:51 UTC | |
Re: use strict
by borisz (Canon) on Jun 01, 2004 at 13:00 UTC |