Arquivo :: Tabular.

arquivo :: tabular pode pesquisar e editar arquivos tabulares planos.
Baixe Agora

Arquivo :: Tabular. Classificação e resumo

Propaganda

  • Rating:
  • Licença:
  • Perl Artistic License
  • Preço:
  • FREE
  • Nome do editor:
  • Laurent Dami
  • Site do editor:
  • http://search.cpan.org/~dami/

Arquivo :: Tabular. Tag


Arquivo :: Tabular. Descrição

Arquivo :: Tabular pode pesquisar e editar arquivos tabulares planos. Arquivo :: tabular pode pesquisar e editar arquivos tabulares planos.Synopsis use arquivo :: tabular; Meu arquivo $ F = novo :: tabular ($ filename); minha $ row = $ F-> fetchrow; Imprimir $ ROW -> {field1}, $ row -> {field2}; $ row = $ f-> fetchrow (onde => 'algumOR'); $ row = $ f-> fetchrow (onde => 'field1> 4 e field2> = "01.01.2001"'); $ row = $ f-> fetchrow (onde => qr / somes + (complexos *)? (regex | expressão regular) / i); $ f-> rebobinar; Minhas $ linhas = $ F-> fetchall (onde => 'Somefield = ~ ^ +'); Imprimir $ _-> {somefield} foreach @ $ linhas; $ f-> rebobinar; $ linhas = $ F-> fetchall (onde => '+ field1: algum profundo -field2: outroword', orderby => 'field3, field6: num, field5: -Alpha'); $ f-> rebobinar; Meus $ hashrows = $ F-> fetchall (onde => 'foo e não bar', tecla => 'somefield'); Imprimir $ HashRows -> {Cadakey} {someotherfield}; # Abrir para atualizações e lembre-se das atualizações em um arquivo de diário $ f = novo arquivo :: tabular ("+> $ journalfile"}); # atualizações em posições específicas (números de linha) $ f-> emendas (4 => 2, undef, # Excluir 2 linhas da posição 47 => 1, {f1 => $ v1, f2 => $ v2, ... }, # Substitua a linha 79 => 0, {...}, # insira 1 nova linha na posição 922 => 0, # Insira vários linhas em pos. 22 ... -1 => 0, # anexar no final); # taquigrafia para adicionar novos dados no final $ f-> anexação ({f1 => $ v1, f2 => $ v2, ...}); # mesma coisa, mas use o "hash :: tipo" associado ao arquivo $ f-> anexação ($ f-> ht-> new ($ v1, $ v2, ...)); $ f-> claro; # remove todos os dados (mas mantém a linha de cabeçalho) # atualizações em teclas específicas, correspondendo a @keyfields $ F-> writekeys ({key1 => {f1 => $ v1, f2 => $ v2, ...}, # Adicionar ou Atualizar Key2 => UNDEF, # Remover ...}, @keyfields); # Replay as atualizações em um arquivo de backup Meu $ BCK = novo arquivo :: tabular ("+ requisitos: · Perl.


Arquivo :: Tabular. Software Relacionado