Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Can't Write to Files properly

by keszler (Priest)
on Dec 04, 2011 at 19:39 UTC ( #941754=note: print w/ replies, xml ) Need Help??


in reply to Can't Write to Files properly

$HTML1 and $HTML2 are created and defined in the MakeHTML subroutine. Once that subroutine ends they're out of scope. ExtractText then prints variables with the same name that are undefined.

See Scoping for more info.

If all you're interested in is a quick bandage (over an arterial laceration...), add

my $HTML1; my $HTML2;
after my $point;. Then get some sleep, uncomment use strict;, and start on a real fix.


Comment on Re: Can't Write to Files properly
Select or Download Code
Re^2: Can't Write to Files properly
by sdyates (Scribe) on Dec 04, 2011 at 20:17 UTC
    I appreciate your help, but these steps are helping the problem, just helping to make things more proper. Here is a sample output:
    <p align=\"justify\">> Company: Commodore, USA<br> > Date: 1986<br> > Amiga: A2000, A3000, A4000<br> > Interface: Zorro II<br> > Autoconfig ID: ID514 / 10<br> </p> <br> <br> <UL><I>Processor</I> <LI> >68EC030 @ 40 MHz Or 68030 @ 33 / 50 MHz, PGA <LI> >Optional 68882 PGA FPU <UL><I>Memory</I> <LI> >One 72 Pin SIMM Socket Accepts 32 MB RAM <LI> >Supports 4, 8, 16, 32 MB SIMMs, 60-70 Ns <LI> >Burst RAM Access <UL><I>Optional Modules</I> <LI> >SCSI Controller <LI> >NCR 53C80 Controller IC <LI> >Does Not Use DMA Transfer <LI> >Autoboot ROM (Csascsi.Device) <LI> >DB25 External SCSI Connector <LI> >Supported By NetBSD And OpenBSD <LI> >Networking Controller <LI> >Combination Of The Catweasel Mk2 Floppy Controller And The Buddh +a Flash IDE Controller Built Into One Device <LI> >Features All Buddha Flash And Catweasel Z-II Mk2 Functions <LI> >Works With All A1200 Zorro Busboards <LI> >64 DIP Sockets Accept 2 MB RAM <LI> >Supports 0.5, 1 Or 2 MB Configurations <LI> >Accepts 256k&Times;1 DIPs Only </UL>
    The code that displays the company name, date, autoconfig all works down to the list. In this case, the A2052.php outputted file, only these three lines should appear in the list:
    <LI> >64 DIP Sockets Accept 2 MB RAM <LI> >Supports 0.5, 1 Or 2 MB Configurations <LI> >Accepts 256k&Times;1 DIPs Only

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://941754]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-10-25 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls