Re: BEGIN <> BEGIN



Bob Anastasia wrote:
Ferry Bolhar wrote:

I understand that a "use <module> <vars>;" is similar to

BEGIN {
Are these BEGIN blocks special in some way? Are
require <module>;
<module>->import(<args>);
}

this doesnt look like perl to me, is this a mod or style i am not
familiar with? this looks more like C or C++

You need to read
perldoc perlmod
if you don't recognize BEGIN{} blocks.

Paul Lalli

.



Relevant Pages

  • Re: Configure fails (./myread no such file or directory)
    ... Ive ended up modifying Configure.sh so that it doesnt call ./myread ... > Build a threading Perl? ... > Let me guess what the preprocessor flags are... ... > Checking your choice of C compiler and flags for coherency... ...
    (comp.lang.perl.misc)
  • changing selected values in optionmenus in perl tk
    ... The oreilly book on perl tk ... doesnt discuss this. ... exampke or a suggestion as to how I could have the options in one menu ...
    (perl.beginners)
  • RE: output from system call
    ... >Is there a way to store the output of a system call on unix? ...
    (perl.beginners)
  • Re: date problem
    ... In Chris F.A. Johnson wrote: ... >> I need to generate a date in the format YYYYMMDDHHMMSSS for a perl ... >> doesnt have that extra S at the end. ...
    (comp.lang.perl.misc)
  • Re: date problem
    ... In Chris F.A. Johnson wrote: ... >> I need to generate a date in the format YYYYMMDDHHMMSSS for a perl ... >> doesnt have that extra S at the end. ...
    (comp.unix.shell)