[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:

: I do not understand what "/path/url.pl?H_String"; is.

    It looks like a CGI GET request. Like this one for Google.

    http://groups.google.com/groups?q=%22multi+column%22+css


: what is the ? before H_string for and why

    It is used to separate the cgi script name from the list of
fields. I think RFC 2396 explains URIs.


: understand that the H_string will be generated from a system
: command for every $_ and it looks like
:
: sf.H02047 capacty: 189.1G space: 117.7G

    Can you show more examples. (Is capacity really spelled wrong
in the code?). This one will fail in the code you gave. (Well,
everything will fail in the code given, but assuming a complete
code example was given, this example would fail.) How about five
that should fail to print and five that should succeed and print
a link.

    Here's how I would write the code for a question to a list.
Note how I replaced the I/O with <DATA>. I don't care how you get
the data, as long as you are sure the sample is an accurate
sample.

    You can then just add the examples at the bottom of the script
below the __END__ tag. Then we can all cut and paste the script to
our editors and see your problem first hand.

    Note that I deleted the "open' statement, the extra comments,
that $flag business, simplified the html, and added strict and
warnings. All the distractions are out of the way and we can find
what problem you are really having. As soon as we have some
sample data.



#!/usr/bin/perl

use strict;
use warnings;

viewhrtlab();

sub viewhrtlab {

    foreach ( <DATA> ) {

        if ( /(?i)fs_heartlab\.1/ .. /(?i)fs_lanv1.1/ ) {
            s<fs_lanv1.1><>;

            if (/(?i)total space available:/) {
                print "<p>$_</p>";

            } else {
                print qq(<p><a href="$_"></a></p>\n";
            }
        }
    }
}

__END__
sf.H02047 capacity: 189.1G space: 117.7G
    .
    .
    .



    Can you supply us something like that?

HTH,

Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to