Difference between revisions of "Talk:Control Structures"

From Wiki
Jump to: navigation, search
(Question on nested subs.)
 
Line 3: Line 3:
  
  
sub mysub
+
  sub mysub
  ..do something..
+
    ..do something..
  sub mysub2
+
    sub mysub2
    ..do something else..
+
      ..do something else..
 +
    return
 
   return
 
   return
return
+
 
  
 
Also, would 'mysub2' be callable from outside of 'mysub'?
 
Also, would 'mysub2' be callable from outside of 'mysub'?
 
The documentation isn't clear on this.
 
The documentation isn't clear on this.

Revision as of 17:35, 19 November 2008

Are nested subs allowed? For example..


 sub mysub
   ..do something..
   sub mysub2
     ..do something else..
   return
 return


Also, would 'mysub2' be callable from outside of 'mysub'? The documentation isn't clear on this.