CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Utility of different named blocks in Perl

 



Cupidvogel
Novice

Apr 3, 2012, 8:11 AM

Post #1 of 5 (1047 views)
Utility of different named blocks in Perl Can't Post

Hi, Perl has 5 named blocks that are executed/compiled/run at different times: INIT, BEGIN, UNITCHECK, CHECK and END. While the Perldoc page has a good example differentiating between them, it doesn't address the issues where they might be or should be used. Surely the 5 blocks are there because they serve specific purposes, right? Can someone give a specific example for each block stating how it is required there?


(This post was edited by Cupidvogel on Apr 3, 2012, 9:10 AM)


FishMonger
Veteran / Moderator

Apr 3, 2012, 9:07 AM

Post #2 of 5 (1046 views)
Re: [Cupidvogel] Utility of different named blocks in Perl [In reply to] Can't Post

What??

Is that supposed to be a question or a statement? In either case, it doesn't make much sense.

Please explain what you need.


Cupidvogel
Novice

Apr 3, 2012, 9:10 AM

Post #3 of 5 (1042 views)
Re: [FishMonger] Utility of different named blocks in Perl [In reply to] Can't Post

Sorry!


rovf
Veteran

Apr 10, 2012, 4:42 AM

Post #4 of 5 (969 views)
Re: [Cupidvogel] Utility of different named blocks in Perl [In reply to] Can't Post

http://perldoc.perl.org/perlmod.html#BEGIN%2C-UNITCHECK%2C-CHECK%2C-INIT-and-END


Cupidvogel
Novice

Apr 10, 2012, 4:46 AM

Post #5 of 5 (968 views)
Re: [rovf] Utility of different named blocks in Perl [In reply to] Can't Post

Thanks.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives