| LeoNerd | When a webserver starts a normal CGI, does it put anything interesting in argv[] does anyone know...? |
| action | CPAN upload: Bio-Phylo-0.16_RC4 by RVOSA |
| CPAN | upload: Bio-Phylo-0.16_RC4 by RVOSA |
| jagerman | Unfortunately, afaik unicode doesn't have a doll symbol, otherwise we could condense it to DOLLSYMBOLq |
| Randal | is there "BAR OVER B" "BAR OVER Q" that'd work |
| oMish__ | LeoNerd, afair the cgi rfc, nothing is passed in argv, unless i forget |
| Randal | "BAR "B" "Q" as in western brand |
| dkr | |=q |
| oMish__ | that's barbaric or, as my french auntie would say, barbarique' |
| Randal | Just the ; ma'am |
| michoelc | Hinrik, I am trying to figure out how to get a module to read a value from the main namespace. I try $main::varName (as suggested here) and it doesn't work.. Hinrik, sorry :-) |
| Randal | if it's a lexical (my) that won't work |
| michoelc | *Hi |
| hobbs | michoelc: it works just fine. |
| michoelc | Randal, it's using our hobbs, so I must be doing something wrong |
| hobbs | michoelc: yep! |
| LeoNerd | oMish__: OK.. that's useful to know |
| michoelc | hobbs, any suggestions what? |
| hobbs | michoelc: nope, I can't see the code. |
| michoelc | hobbs, in main program: our $var = "abc"; use MyModule; |
| Randal | modules shouldn't be doing that anyway oh, and in that case, "abc" won't be set yet not until runtime |
| michoelc | hobbs, in MyModule.pm: $var = $main::var; Randal, I can't think of an alternative |
| Randal | michoelc - import and export subroutines, not variables partition your program so that you don't need to pass data via globals |
| hobbs | or if you really feel a need, do what Dumper does and run it the other way around, have main stuff values into someone else's namespace but at that point you'd likely do a lot better with objects :) |
| Randal | use This; use That; initialize(); That->initialize(x => $this, y => $that); |
| MorphineChild | hey |
| Randal | like that. pass any data that needs to be shared via inititalization or in each call |
| nanonyme | Randal: you're confusing :) |
| Chris62vw | hey kid. |
| Randal | Yeah I know |
| MorphineChild | if i have %bar = (1 => 2, 3 => 4); $foo = 'bar'; can i access %bar through $foo ? |