Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Passing variables to scripts rans through 'do'

by c (Hermit)
on Dec 02, 2001 at 19:28 UTC ( [id://128985]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    do 'genheader';
    do 'genlimit';
    do 'genfooter';
    
  2. or download this
    print "<VirtualHost $domain>\n";
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    &genHeader($domain);
    &genLimit;
    &genFooter;
    
  4. or download this
    sub genHeader {
      my $domain = shift;
      print "<VirtualHost $domain>\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://128985]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-25 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found