start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: ControlSendTimeout Chapter 19
Win32 Modules and Extensions
Next: Reference: CreateURL
 

CrackURL

$

inet


->CrackURL
(

URL

, [

flags

])

Splits a URL into its component parts and returns them in an array. Returns undef on error. The array will contain the following values: (scheme, host, port, username, password, path, extrainfo) . For example, the URL http://www.divinf.it/index.html#top can be split into:

http, www.divinf.it, 80, anonymous, [email protected], /index.html, #top
If you don't specify a flags parameter, ICU_ESCAPE will be used by default; for the possible values of flags refer to the Microsoft Win32 Internet Functions documentation.


Previous: Reference: ControlSendTimeout Perl in a Nutshell Next: Reference: CreateURL
Reference: ControlSendTimeout Book Index Reference: CreateURL

Library Navigation Links

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