Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: trouble modifying add_record subroutine

by mephit (Scribe)
on Sep 10, 2002 at 20:20 UTC ( [id://196801]=note: print w/replies, xml ) Need Help??


in reply to trouble modifying add_record subroutine

foreach $field (@fields){ ${$field} = $q->param($field); ${$field} = filter(${$field}); $record .= "\::${$field}";
I'm surprised none of the previous posters mentioned that this is a use of symbolic references, and horks under 'use strict.' You are "use strict'-ing, aren't you? I agree with what anithri said here: use a hash instead. Oh, and use strict, too. -w couldn't hurt, either.

--

There are 10 kinds of people -- those that understand binary, and those that don't.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-25 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found