Re: [Http-webtest-general] on_response question
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ip...> - 2003-04-01 11:53:48
|
>>>>> "GF" == Gerry Finkel <ga...@cs...> writes: GF> Illa, GF> Being kinda new to this stuff, I have a follow up question. Isn't it GF> also necessary for the second case to contain an anonymous function as GF> well, so $SID is evaluated at runtime, rather than at load? GF> e.g. GF> sessionID => $SID GF> should really be GF> sessionID => sub { $SID } Actually sessionID => $SID is not evaluated at all. It is equalent to sessionID => '$SID' To be evaluated it should be written as sessionID => "$SID" As for evaluation time it is always evaluted in runtime and concerning HTTP::WebTest internals it is exactly equalent to sessionID => sub { "$SID" } -- Ilya Martynov, il...@ip... CTO IPonWEB (UK) Ltd Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net Personal website - http://martynov.org |