Thread Frage zu Prototypen $foo 24 Seite 9 (5 answers)
Opened by bianca at 2015-01-22 12:40

bianca
 2015-01-22 12:40
#179320 #179320
User since
2009-09-13
6978 Artikel
BenutzerIn

user image
In der o.a. $foo gibt es dieses Codebeispiel:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
use feature 'say';
sub p_foo () {
    my $n = 12 * ( $_[0] // 1 );
    return $n;
}

sub foo {
    my $n = 12 * ( $_[0] // 1 );
    return $n;
}
say "p_foo: ", p_foo + 3;
say "foo: ", foo + 3;

Warum kommt beim ersten 15 raus?
10 print "Hallo"
20 goto 10

View full thread Frage zu Prototypen $foo 24 Seite 9