in reply to calling a function based on a condition
call_view() is called because $options{'r'} doesn't exist.#!/usr/bin/perl use strict; use warnings; my %options; call_view() unless exists $options{'r'}; sub call_view { print "doesn't exist.\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: calling a function based on a condition
by wfsp (Abbot) on Mar 14, 2011 at 08:46 UTC |