Professional Web Applications Themes

EOF and library question... - PERL Beginners

How does one signal to the compiler that the EOF has been reached when writing a library file? Thanks, Kathryn...

  1. #1

    Default EOF and library question...

    How does one signal to the compiler that the EOF has been reached
    when writing a library file?

    Thanks,
    Kathryn

    Kathryn Guest

  2. #2

    Default Re: EOF and library question...



    Kathryn Tate wrote: 

    Hello,


    Foo.pm:

    package Foo;
    ....
    1;

    Then in your script
    use Foo;

    the 1; returns true so use knows it was successful :)

    HTH

    Lee.M - JupiterHost.Net
     
    Jupiterhost.Net Guest

  3. #3

    Default Re: EOF and library question...


    >
    > Hello,
    >
    >
    > Foo.pm:
    >
    > package Foo;
    > ...
    > 1;
    >
    > Then in your script
    > use Foo;
    >
    > the 1; returns true so use knows it was successful :)
    >[/ref]

    While true, that doesn't signal an EOF to the compiler, that is just a
    statement. Any last statement's value can be used as the library's
    true/false return. To tell the compiler to stop reading for source you
    would need to use,

    __END__

    http://danconia.org

    Wiggins Guest

  4. #4

    Default Re: EOF and library question...

    >>package Foo; 
    >
    >
    > While true, that doesn't signal an EOF to the compiler, that is just a
    > statement. Any last statement's value can be used as the library's
    > true/false return. To tell the compiler to stop reading for source you
    > would need to use,
    >
    > __END__[/ref]

    Thanks for the clarification Wiggins! :)

    Lee.M - JupiterHost.Net
    Jupiterhost.Net Guest

Similar Threads

  1. General Library Question
    By Renee_Tanner@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 3
    Last Post: September 15th, 12:55 PM
  2. Tag library question
    By hal19 in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 0
    Last Post: November 24th, 07:34 PM
  3. Library use question
    By David in forum PERL Beginners
    Replies: 0
    Last Post: February 3rd, 05:33 PM
  4. question re. iTunes library on YD Linux
    By Chris Scott in forum Mac Applications & Software
    Replies: 0
    Last Post: July 9th, 02:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139