Advertisement

03.11.2008 at 12:13PM PDT, ID: 23232891
[x]
Attachment Details

Perl "write" command format?

Asked by bganoush in Perl Programming Language

Tags: Perl

Where can I find documentation on the "write()" command in perl?  The code snippet shows the method "init_app" that shows two dotted lines and a title.

Start Free Trial
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:
#!/usr/bin/env perl
# File:     ewrite.pl
#
use strict;
 
my ($ft_v1, $ft_v2, $ft_v3, $ft_v4);
my $title="Title Goes Here";
 
# ----- REPORT FORMATING -----
format =
  @<<<<<<<<<<<<<<<<<<<<<<<  @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  @>>>>>>>>>>>>>  @>>>>>>>>>>>>>
  $ft_v1,                   $ft_v2,                          $ft_v3,         $ft_v4
.
 
# ----- PRIVATE SUB-FUNCTION DEFINITION -----
sub init_app
{
  print "\n\t\t[ $title ]\n\n";
 
  $ft_v1 = '=' x 20;
  $ft_v2 = '=' x 52;
  $ft_v3 = '=' x 22;
  $ft_v4 = '=' x 22;
  write();
 
  $ft_v1 = '=' x 20;
  $ft_v2 = '=' x 52;
  $ft_v3 = '=' x 22;
  $ft_v4 = '=' x 22;
  write();
}
 
# Start application:
init_app();
 
### We are ready to exit
exit 0;
[+][-]03.11.2008 at 12:21PM PDT, ID: 21099085

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.11.2008 at 12:28PM PDT, ID: 21099152

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: Perl
Sign Up Now!
Solution Provided By: oleber
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628