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"; }
In reply to Re: calling a function based on a condition
by Khen1950fx
in thread calling a function based on a condition
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |