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

Re: problems editing a flat-file

by aijin (Monk)
on Jul 17, 2001 at 23:56 UTC ( #97425=note: print w/replies, xml ) Need Help??


in reply to problems editing a flat-file

There are a bunch of problems with this code.

First off, your formatting is very difficult to read. You should indent the code like this.

Example:

if ($blah) { foreach (@goo) { print; } } else { print "no way man!\n"; }

It makes it much easier to check that all your braces line up.

Secondly, you're not sending $query to the valid_code subroutine, or any of the other subroutines that require that information to work properly.

Thirdly, you don't need to put the code in your first if statement into an eval statement.

My guess is that you're never getting to the part of your code that updates the records.

There are a lot of things you need to do to get this script working. If you'd like, msg me, and I'd be happy to guide you in the right direction.

-aijin

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://97425]
help
Chatterbox?
[zentara]: TGIF, I'm blowing my mind watching Casimir Effect & Black Holes - Sixty Symbols I love 60 Symbols. :-)
zentara ..oO the vacuum is teeming with photons and micro-blackholes
zentara .. and probably NSA bugs ;-)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-06-23 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (552 votes). Check out past polls.