Find the answer to your Linux question:
Results 1 to 2 of 2
In C I can just compile several files, and then link them together at once. However, in Perl, how is this done? Can I have multiple source code files with ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Alboin's Avatar
    Join Date
    Jan 2007
    Posts
    59

    Multiple Source Files in Perl.....


    In C I can just compile several files, and then link them together at once. However, in Perl, how is this done? Can I have multiple source code files with global data and the such? Thanks!

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    There are three ways to include a file in Perl, and they all do something different:

    http://perldoc.perl.org/functions/do.html
    http://perldoc.perl.org/functions/require.html
    http://perldoc.perl.org/functions/use.html
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

Posting Permissions

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