| Jmax- | michoelc: if it's already OO just pass it to the constructor and store it in the object |
| mofino | hobbs, no love for the abstract. |
| MorphineChild | Randal anyway in my case it's not that pointless as it appears.. having $name for <input name="$name" /> and %names for all values that are connected to that input %{$input . 's'} is just sweet to use |
| michoelc | Jmax-, it comes from redesigning a program that wasn't modular.. |
| Jmax- | michoelc: so make it modular |
| action | CPAN upload: DateTime-Format-ISO8601-0.05 by JHOBLITT |
| CPAN | upload: DateTime-Format-ISO8601-0.05 by JHOBLITT |
| action | CPAN upload: JSON-1.09 (+++ ) by MAKAMAKA |
| CPAN | upload: JSON-1.09 (+++ ) by MAKAMAKA |
| buu | EEK |
| hobbs | MorphineChild: uh, no. |
| Jmax- | non-reusable code is worse than non-functional code |
| buu | MorphineChild: Welcome to the land of security holes. |
| MorphineChild | security holes in what would that be? |
| michoelc | Jmax-, it's a major inconvience, and the code is not resuable really. It's only a module so that I can work with more than one file |
| psybach | sometimes i wonder why there can't be some sort of autoop in pl |
| hobbs | MorphineChild: that's not sweet, that's awful. And it means you have no choice but to fool with global data. |
| MorphineChild | buu if im checking what im passing as $name, i dont see what security holes i might have |
| Jmax- | michoelc: regardless you're munging up scoping. it's inefficient |
| buu | MorphineChild: How are you checking it? |
| hobbs | MorphineChild: all you need is a hash, with valid $names as keys, and you end up with more efficiency, half the code, no complaints from strict, and a LOT less opportunities to completely break your program :) |
| Jmax- | not to mention confusing for the code maintainer |
| MorphineChild | buu defined() |
| michoelc | Jmax-, would you be able to look at the program (its on a trac) and tell me what you think? |
| buu | ergh |
| Jmax- | michoelc: i already told you what i think. pass it to each necessary function or store it in the object |
| MorphineChild | hobbs yeah hash will work, ty |
| michoelc | Jmax-, passing it to the function doesn't seem feasable |
| hobbs | %main:: is also just a hash, it's just one that you can rape globally, and strict cries when you do that ;) |
| Jmax- | michoelc: then store it in a function er the object |
| michoelc | Jmax-, okay.. I guess I will go for that then. Do you know where I can read up on it? |
| dazjorz_ | bah |
| MorphineChild | hobbs ugh let's stick to something more simple, like %hash =('foo'=>{});:P |
| Jmax- | michoelc: objects? perldoc perlobj; perldoc perlboot; perldoc perltoot; etc. |
| dazjorz | bah well, gotta go bye |
| michoelc | Jmax-, okay.. thanks for the time. I'll go read. |
| hobbs | MorphineChild: have you ever tried typing something coherent? |
| Jmax- | :) |