Aug 27, 2002, 11:11 PM
Post #2 of 2
You're making $foo into a symbolic reference, which is a bad idea and therefore "use strict" complains.
Re: [andrew_b] subroutines and strict
[In reply to]
Get round the problem by making $foo into a real reference.
#! /usr/bin/perl -w
my $foo = \&bar;
Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks