firedoctor has asked for the wisdom of the Perl Monks concerning the following question:
This returns: Can't use string ("") as a subroutine ref while "strict refs" in use at ./test.pl line 5. Any ideas? <cr> -Craig#!/bin/perl use strict; my $testsub; my $subref = $tests $testsub = sub { print $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using references to subroutines
by broquaint (Abbot) on Apr 10, 2003 at 16:20 UTC | |
|
Re: Using references to subroutines
by hardburn (Abbot) on Apr 10, 2003 at 16:17 UTC | |
|
Re: Using references to subroutines
by simon.proctor (Vicar) on Apr 10, 2003 at 17:36 UTC |