Sean M. Burke wrote:

> I've been trying to decide which would be better:
> $resp->status line
>   or
> $resp->request->url . " -- " . $resp->status_line
>   or
> $resp->status_line . ' at ' . $resp->request->url
> 

If this is to be used partly as a debugging aid then I like bracketing 
the returned data because that way I get to see clearly if there are 
unexpected trailing whitespace or other junk. This is kind of a hangover 
from programming in languages that were less than perfect at string 
handling but it could still be useful. no?

This would imply an option 4/5 of
$resp->request->url . '--(' . $resp->status_line .')'
   or
'('.$resp->status_line . ') at ' . $resp->request->url

Of which my personal favourite would be 4


Francis


-- 
Francis Turner, CIO Juelich Enzyme Products GmbH
http://www.juelich-enzyme.com/ +49-173-291-7278

If you're not part of the solution, you're part of the precipitate.
             -- Henry J. Tillman


Reply via email to