Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Good job KM!

1 Th 5:11
So encourage each other and build each other up, just as you are already doing.

Temporary content below for Stamp_Guy...

#!/usr/bin/perl -w # # pod at tail use strict; use vars qw( $scalar1 $scalar2 $scalar3 @list1 @list2 @list3 @list4 ); my $configfile = 'dotest.conf'; print "\n", "Starting $0\n", "Reading vars by \"do\"ing $configfile\n", ; do "$configfile"; print "Printing var contents with $0\n\n", " \$scalar1 contains: $scalar1\n", " \$scalar2 contains: $scalar2\n", " \$scalar3 contains: $scalar3\n", ; print "\n \@list1 contains: "; for(@list1) { print"\n $_"; } print "\n \@list2 contains: "; for(@list2) { print"\n $_"; } print "\n \@list3 contains: "; for(@list3) { print"\n $_"; } print "\n \@list4 contains: "; for(@list4) { print"\n $_"; } print "\n\nDone running $0\n\n"; =head1 Title =head1 Description Test scriptlet for Perl's builtin "do" function. =head1 Comments The config file doesn't appear to need: chmod +x shebang line And must not include vars declared lexically with 'my' Better to declare the vars lexically in main script with 'my', instead of the above global declaration with 'use vars qw...' but I can never seem to remember the right syntax for my'ing a group of vars. =head1 Author ybiC =head1 Updated 2001-06-21 14:40 Add @list4. Add Sample run to pod. Add Contents of config file to pod. =head1 Contents of config file $scalar1 = 'now is the time'; $scalar2 = 'it was the best of times'; $scalar3 = 'tiiime is ticking away, tick-tick-ticking away'; @list1 = qq($scalar1 $scalar2 $scalar3); @list2 = qw($scalar1 $scalar2 $scalar3); @list3 = ("$scalar1", "$scalar2", "$scalar3"); @list4 = qq($scalar1, $scalar2, $scalar3); =head1 Sample run Starting Reading vars by "do"ing dotest.conf Printing var contents with /cygdrive/d/Perl/DR/ $scalar1 contains: now is the time $scalar2 contains: it was the best of times $scalar3 contains: tiiiime is ticking away, tick-tick-ticking away @list1 contains: now is the time it was the best of times tiiiime is ticking away +, tick-tick-ticking away @list2 contains: $scalar1 $scalar2 $scalar3 @list3 contains: now is the time it was the best of times tiiiime is ticking away, tick-tick-ticking away @list4 contains: now is the time, it was the best of times, tiiiime is ticking aw +ay, tick-tick-ticking away Done running =cut

In reply to RE: PSALM 23 (1 Th 5:11) by ybiC
in thread PSALM 23 by KM

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2021-07-28 18:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found