Name
scheme
Synopsis
scheme([$some_scheme
])
Sets and gets the scheme part of the URI. Such values
include: data
, file
, ftp
, gopher
, http
, https
, ldap
, mailto
, news
, nntp
, pop
, rlogin
, rsync
, snews
, telnet
, and ssh
. In the case of relative URIs,
scheme
will return undef
; otherwise, scheme
will return the scheme in
lowercase. With $
some_scheme
, scheme
will set the scheme of the
current URI. scheme
will
die if the scheme isn’t supported, or if it contains
non-US-ASCII characters.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.