...but got#!/usr/bin/perl -w sub testrun() { my $r = run('noexit'); print "ret: $r\n"; } sub run { my $noexit = shift; my $retorexit = $noexit ? \&return : \&exit; &$retorexit(1); } testrun();
Undefined subroutine &main::return called at ./foo line 10.retorexit could indeed be a macro...
Marc
In reply to Re: A Macro System for Perl?
by cramdorgi
in thread A Macro System for Perl?
by samtregar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |