#perl - Tue 27 Mar 2007 between 18:47 and 18:57



LeoNerdWhen a webserver starts a normal CGI, does it put anything interesting in argv[] does anyone know...?
actionCPAN upload: Bio-Phylo-0.16_RC4 by RVOSA
CPANupload: Bio-Phylo-0.16_RC4 by RVOSA
jagermanUnfortunately, afaik unicode doesn't have a doll symbol, otherwise we could condense it to DOLLSYMBOLq
Randalis 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'
RandalJust the ; ma'am
michoelcHinrik, 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 :-)
Randalif it's a lexical (my) that won't work
michoelc*Hi
hobbsmichoelc: it works just fine.
michoelcRandal, it's using our
hobbs, so I must be doing something wrong
hobbsmichoelc: yep!
LeoNerdoMish__: OK.. that's useful to know
michoelchobbs, any suggestions what?
hobbsmichoelc: nope, I can't see the code.
michoelchobbs, in main program: our $var = "abc"; use MyModule;
Randalmodules shouldn't be doing that anyway
oh, and in that case, "abc" won't be set yet
not until runtime
michoelchobbs, in MyModule.pm: $var = $main::var;
Randal, I can't think of an alternative
Randalmichoelc - import and export subroutines, not variables
partition your program so that you don't need to pass data via globals
hobbsor 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 :)
Randaluse This; use That; initialize(); That->initialize(x => $this, y => $that);
MorphineChildhey
Randallike that. pass any data that needs to be shared via inititalization or in each call
nanonymeRandal: you're confusing :)
Chris62vwhey kid.
RandalYeah I know
MorphineChildif i have %bar = (1 => 2, 3 => 4); $foo = 'bar'; can i access %bar through $foo ?

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 

IrcArchive