FAQ

subs in perl ALWAYS return something, either the value from return or
the last evaluated expression.
What do you mean by this?

sub nothing {
my $something = 5;
if ( $something == 5) {}
}

... will return 'undef' and not 5 or anything else, right?

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 12 | next ›
Discussion Overview
groupbeginners @
categoriesperl
postedJan 12, '11 at 9:24p
activeJan 13, '11 at 10:39a
posts12
users7
websiteperl.org

People

Translate

site design / logo © 2021 Grokbase