develooper Front page | perl.beginners | Postings from February 2012

RE: Parsing Question

Thread Previous | Thread Next
From:
Kronheim, David
Date:
February 2, 2012 00:28
Subject:
RE: Parsing Question
Message ID:
F25B3888E10C0F40B1AFEB8E63A27AB10806B1744E@ROCH-EXCH1.corp.pvt
Hi Tim:

As you indicate a line return is missing, in the original email:
                        # print this information to the screen
                        print "$current_block_hostname:$current_state\n";
                        # since were finished with this hoststatus
                        # block we can reset our
$we_are_inside_hoststatus_block


Should show up as:
                        # print this information to the screen
                        print "$current_block_hostname:$current_state\n";
                        # since were finished with this hoststatus
                        # block we can reset our $we_are_inside_hoststatus_block

Since $we_are_inside_hoststatus_block was not intended here to start a statement.
Including $we_are_inside_hoststatus_block in the print, will not have much value as the field is either a 1, 0 or undef  (1 at this point, if it were undef, we'd get a warning).

Sincerely,
David Kronheim
Production Support Tier II
Gateway Error Correction, VZ450 EDI, EDI Billing, & Metakey/LIA
484-213-1315
________________________________________
From: timothy adigun [2teezperl@gmail.com]
Sent: Wednesday, February 01, 2012 2:11 PM
To: jbiskofski
Cc: Brandon Phelps; beginners@perl.org
Subject: Re: Parsing Question

Hi jbiskofski,
    This script will not work WHY? -- Scalar found where operator expected
at ..... [ Please Check ] line 72, near "$we_are_inside_hoststatus_block"
..........

This communication is confidential.  Frontier only sends and receives email on the basis of the terms set out at http://www.frontier.com/email_disclaimer.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About