c has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -wT use strict; my $file = "pancho-ng"; open(FH, $file); while(<FH>) { tr/\\\@/@/d; print if /USE/.../USE/ and !/USE/; } close(FH);
to print a portion of a file. the following text is contained within the portion being printed:
options [ --upload | --download | --commit ] [ --filename <filename> ] [ --list <list> ] [ --host <hostname> ] [ --server <ip/fqdn/hostname> ] [ --string <snmp community> ] [ --path <path within tftproot> ] [ --regex <regular expression> ] [ --version ] [ --verbose-help ] [ --help ]
the script works and print out the portion of the script i want it to, however it does not print out the < > characters or any text contained between them.
can someone explain why this is?
humbly -c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: printing the current script will not show
by Ovid (Cardinal) on Sep 11, 2001 at 01:38 UTC | |
|
Re: printing the current script will not show
by blakem (Monsignor) on Sep 11, 2001 at 01:25 UTC |