DATOS :: MultivaluedHash

DATOS :: MultivaluedHash - Hash cuyas llaves tienen varios valores ordenados.
Descargar ahora

DATOS :: MultivaluedHash Clasificación y resumen

Anuncio publicitario

  • Rating:
  • Licencia:
  • Perl Artistic License
  • Precio:
  • FREE
  • Nombre del editor:
  • Darren R. Duncan
  • Sitio web del editor:
  • http://search.cpan.org/~duncand/CGI-Portable-0.51/lib/CGI/Portable/AppMultiScreen.pm

DATOS :: MultivaluedHash Etiquetas


DATOS :: MultivaluedHash Descripción

DATOS :: MultivaluedHash - Hash cuyas llaves tienen varios valores ordenados. DATOS :: MultivaluedHash - Hash cuyas llaves tienen múltiples valores ordenados. HSYNOPSIS Use DATOS :: MultivaluedHash; $ MVH = DATOS :: MultivaluedHash-> Nuevo (); # Hacer vacío, distingue entre mayúsculas y minúsculas (norma) $ MVH = DATOS :: MultivaluedHash-> Nuevo (1); # Hacer vacío, insensible a la caja $ MVH = DATOS :: MultivaluedHash-> Nuevo (0, {Name => 'John', Edad => 17, Color => 'Green', Siblings => , mascotas => ,}; # Hacer nuevo con valores iniciales, claves sensibles a mayúsculas y minúsculas $ MVH-> Tienda (Edad => 18); # Celebre un cumpleaños $ MVH-> PUSH (SIBLINGS => 'TANDY'); # Agregar a un miembro de la familia, devuelve 4 $ MVH-> UNSPLANT (METS => ); # más mascotas $ no_it = $ mvh-> existe ('color'); # devuelve verdadero $ nombre = $ MVH-> Fetch_Value ('hermanos'); # devuelve 'laura' $ nombre = $ MVH-> Fetch_Value ('hermanos', 2); # devuelve 'julia' $ nombre = $ MVH-> Fetch_Value ('hermanos', -1); # devuelve 'tandy' $ rname = $ mvh-> fetch ('hermanos'); # Devuelve los 4 en Array Ref @Names = $ MVH-> Fetch ('hermanos'); # devuelve los 4 como lista $ nombre = $ MVH-> Fetch_Value ('hermanos'); # devuelve nada, caso incorrecto $ MV2 = DATOS :: MultivaluedHash-> Nuevo (1, $ MVH); # convor a Case ESE $ NAME = $ MV2-> Fetch_Value ('hermanos'); # devuelve 'Laura' esta vez $ it_it = $ mvh-> ignores_case (); # devuelve falso; Al igual que los hashes normales $ is_it = $ mv2-> ignores_case (); # devuelve true $ Color = $ MVH-> Shift ('Color'); # devuelve 'verde'; Ninguno sigue siendo $ animal = $ MVH-> Pop ('Mascotas'); # devuelve 'pájaro'; Lista de tres% siendo = $ MVH-> Fetch_all (); # quiere todas las llaves, todos los valores # devueltos (nombre => , edad => , color => [], # siblings => , # mascotas => ) Lista% = $ MVH-> Fetch_FIRST (); # quiere todas las llaves, los primeros valores de cada # devuelve (nombre => 'John', Edad => 18, Color => UNDEF, # SIBLINGS => 'LAURA', PETS => 'DOG')% LISTA = $ MVH- > fetch_last (); # quiere todas las llaves, Últimos valores de cada # devuelven (nombre => 'John', Edad => 18, Color => UNDEF, # SIBLINGS => 'TANDY', PETS => 'CAT')% LISTA = $ MVH- > fetch_last (; # QUIERE LLAMADAS LLAMADAS SOLAMENTE # RETRENDES (NOMBRE => 'JOHN', SIBLINGS => 'TANDY')% LISTA = $ MVH-> Fetch_last (, 1); # Queremos complementos # Devoluciones (Edad => 18, Color => UNDEF, PETS => 'CAT') $ MV3 = $ MVH-> Clon (); # Hacer un duplicado de mí mismo $ MV4 = $ MVH-> Fetch_mvh ('Mascotas', 1); # Deje fuera a las mascotas en este "clon" @list = $ mv3-> teclas (); # Devoluciones ('nombre', 'Edad', 'Color', 'hermanos', 'Mascotas') $ NUM = $ MV3-> Teclas (); # whoops, no hace lo que esperamos; devuelve Array RefT $ NUM = $ MV3-> Keys_Count (); # devuelve 5 @list = $ mv3-> valores (); # Devoluciones ('Juan', 18, 'Laura', 'Andrew', 'Julia', 'Tandy', # 'Dog', 'Hamster', 'Cat') @num = $ mv3-> valores_count (); # devuelve 9 @list = $ mvh-> empalme ('hermanos', 2, 1, , Mascotas => 'Fish',}); # agrega 'canciones' clave con valores, reemplaza la lista de mascotas con 'Fish' $ MV3-> Store_Value ('Mascotas', 'Turtle'); # reemplaza a 'pescado' con 'tortuga' $ mv3-> store_value ('mascotas', 'conejo', 1); # Las mascotas ahora son $ oldval = $ mv3-> eliminar ('color'); # se deshace del color por Good $ RDump = $ MV3-> Delete_all (); # Devuelve todo como hash de matrices, claros requisitos: · Perl


DATOS :: MultivaluedHash Software relacionado

Webfetch

WebFetch es un módulo PERL para descargar y guardar información de la web. ...

160

Descargar