Thread Haltbarkeit von $_[0] (9 answers)
Opened by bianca at 2010-04-02 08:36

esskar
 2010-04-02 12:34
#135624 #135624
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
so ganz stimmt das auch nicht.
ist ja schon scope abhängig:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

&foo;

sub foo {
   "foo" =~ /(.*)/;
   print "foo 1: $1\n";   
   {
      "innerfoo" =~ /(.*)/;
      print "foo 2: $1\n";   
   }
   &bar;
   print "foo 3: $1\n";   
}

sub bar {
        "bar" =~ /(.*)/;
        print "bar  : $1\n";   
}

^Z
foo 1: foo
foo 2: innerfoo
bar : bar
foo 3: foo
Last edited: 2010-04-02 12:37:10 +0200 (CEST)

View full thread Haltbarkeit von $_[0]