On Feb 4, [EMAIL PROTECTED] said:

>My question is this - does PERL execute sequentially and "skip around"
>embedded subroutines or Does it execute them inline?

Perl *compiles* subroutines when it sees them, but does NOT run them
UNLESS you call them.

>Line1
>Line2
>Line3
>Sub1
>Subcode1
>Subcode2
>Endsub1
>Line4
>Line5
>Line6 calls sub1
>Line7

>Does the execution sequence go like this:
>
>Line1, line2, line3 line 4 line5, line6, sub1, subcode1, subcode2,
>endsub1 line7

Yes.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to