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: Edit Log



Cupidvogel
Novice

Apr 3, 2012, 8:11 AM


Views: 1063
Utility of different named blocks in Perl

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)


Edit Log:
Post edited by Cupidvogel (Novice) on Apr 3, 2012, 9:10 AM


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

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