CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [TheDragonReborn] Help with key/value pairs: Edit Log



KevinR
Veteran


Oct 20, 2008, 12:06 PM


Views: 6216
Re: [TheDragonReborn] Help with key/value pairs

add this line to your program:


Code
use warnings;


it will help with syntax problems, like here:


Code
while(INPUT)  
{
foreach ($line (INPUT))
{


those four lines should be replaced with


Code
while(my $line = <INPUT>)  
{


Fix that and retry your code.
-------------------------------------------------


(This post was edited by KevinR on Oct 20, 2008, 12:08 PM)


Edit Log:
Post edited by KevinR (Veteran) on Oct 20, 2008, 12:06 PM
Post edited by KevinR (Veteran) on Oct 20, 2008, 12:07 PM
Post edited by KevinR (Veteran) on Oct 20, 2008, 12:08 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives