Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: Markov generator terminate condition

by Philmac (Novice)
on Apr 23, 2007 at 20:14 UTC ( [id://611588]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Markov generator terminate condition
in thread Markov generator terminate condition

This program (which I saved as clvl.pl) produces errors:
C:\Documents and Settings\t12121uhn\Desktop>clvl.pl intro.pl "my" variable $key_string masks earlier declaration in same scope at C +:\Documen s and Settings\t12121uhn\Desktop\clvl.pl line 54. syntax error at C:\Documents and Settings\t12121uhn\Desktop\clvl.pl li +ne 30, ne r "limits my " Global symbol "%frequency_table" requires explicit package name at C:\ +Documents and Settings\t12121uhn\Desktop\clvl.pl line 30. Global symbol "%frequency_table" requires explicit package name at C:\ +Documents and Settings\t12121uhn\Desktop\clvl.pl line 39. Global symbol "%frequency_table" requires explicit package name at C:\ +Documents and Settings\t12121uhn\Desktop\clvl.pl line 59. Global symbol "%frequency_table" requires explicit package name at C:\ +Documents and Settings\t12121uhn\Desktop\clvl.pl line 62. Execution of C:\Documents and Settings\t12121uhn\Desktop\clvl.pl abort +ed due to compilation errors.
What do I need to do to correct this?

Replies are listed 'Best First'.
Re^5: Markov generator terminate condition
by GrandFather (Saint) on Apr 23, 2007 at 20:40 UTC

    The line numbers in your error messages do not agree with the line numbers in the source code which suggests either copy errors or editing has taken place. So copy it accurately and run it without editing it.

    The code runs as expected when I copy and paste the code from the node above.

    Note that if I remove the my from the %frequency_table declaration and add a my to the $key_string .= assignment I get the same pattern of errors (with slightly different line numbers) that you report.


    DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found