473,395 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

#include equivalent?

This question has probably come up a zillion times, but a search of this
group and Google has been somewhat ambiguous.

Is there a source "include" available for Perl, or a macro statement like
in assembler? I assume that there is not, at least by that topic, since I
can find nothing on the subject in my books.

I would assume that some Perl projects are fairly large and scrolling up
and down dozens or hundreds of screens trying to find that subroutine
would get old fairly fast.

It is easy enough to build a source joiner using several methods, but
being very new to Perl I was just wondering what the pros use to break up
their projects into managable pieces?

Hagar
Jul 19 '05 #1
1 4130
On Wed, 23 Jul 2003 22:12:19 -0500, DelphiDude wrote:
On Tue, 22 Jul 2003 23:51:47 -0500, Hagar wrote:

Is there a source "include" available for Perl, or a macro statement like
in assembler? I assume that there is not, at least by that topic, since I

Yep, there are several ways, but look up the keyword "require", as in

require "./myprog.pl";

Remember that this is a scripting language, not an assembler where you can
tack on includes at the end. You need to require the program before you
use it.

DD

Thanks man! That worked. It is obvious that require is not exactly an
include and has some stuff that I don't understand yet, but it is close
enough. Thanks again.

Hagar
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Yannick Turgeon | last post by:
Oups! I did a typing error in my last post. Fixed. ----------- Hello all, We are currently changing our web server and, in the process, updating PHP version from 4.3.0 to 4.3.5. The problem...
6
by: JStrummer | last post by:
I have a question regarding paths and the include() statement in PHP. I develop in a Windows environment and will be publishing to a Linux server. I would like to do the following: 1. Setup my...
2
by: Mark | last post by:
Is there a Perl equivalent of the PHP include statement? If so please can you also give me a reference in the perldoc manual. http://www.php.net/function.include Thanks Mark
13
by: Gary | last post by:
Hi all, I have a situation where I need to generate a new binary file which just changes a couple of bytes in a couple of places in a pre-existing master template file. I can open and read...
22
by: Weston C | last post by:
I know of course that you can use <script src=""></script> in an HTML document to include javascript code you don't want to spill all over the page. I'm wondering if there's a way to include...
22
by: Long | last post by:
Problem: to insert the content of a file in an HTML document at a specific location. One possible way is to add a WebCharm tag like this: <%@charm:text 20 0 my_include_file.txt %> When the...
4
by: juglesh | last post by:
please comment on the following methods of preventing cross site scripting and/or other nastiness: 1: $pages = array('home','contact','about','links' ); // could also build this array with...
33
by: Darius Fatakia | last post by:
Hi, I seem to be having trouble with some of my math functions (pow, sqrt, acos). They're the only ones I use in my code and they prevent the program from compiling. I get a "undefined reference...
5
by: David Mathog | last post by:
One thing that can make porting C code from one platform to another miserable is #include. In particular, the need to either place the path to an included file within the #include statement or to...
1
by: Robert Davis | last post by:
Does VB.Net have an equivalent to Delphi's $I/$INCLUDE compiler directive, or the same functionality? TIA! Robert
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.