Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 10.7 CGI.pm ReferenceChapter 10
The CGI.pm Module
Next: Reference: append
 

accept

 $query->accept(['content_type'])

Returns a list of media types that the browser accepts.

content_type

If specified, returns instead the browser's preference for the specified content type, between 0.0 and 1.0.


Previous: 10.7 CGI.pm ReferencePerl in a NutshellNext: Reference: append
10.7 CGI.pm ReferenceBook IndexReference: append

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.