Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Filtering very large files using Tie::File

by biohisham (Priest)
on Nov 26, 2010 at 18:28 UTC ( #873906=note: print w/replies, xml ) Need Help??

in reply to Filtering very large files using Tie::File

I also found array-based dupe stripping solutions.....
C:\Documents and Settings\franciscor>perl - use List::MoreUtils qw(uniq); my @list = qw(3 1 2 1 3 4 1 5 1 6 8 1 2 1 2 7 1 1 2 3 4 6 1); my @unique = uniq(@list); print "@unique"; __END__ 3 1 2 4 5 6 8 7

Excellence is an Endeavor of Persistence. A Year-Old Monk :D .

Replies are listed 'Best First'.
Re^2: Filtering very large files using Tie::File
by elef (Friar) on Nov 26, 2010 at 18:50 UTC
    Thanks, that's pretty elegant, but it filters on the whole record, not the first two fields as I need it to, so I'll stick with the solution suggested by Corion.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://873906]
[Corion]: Once more, I'm looking for a sane client-side framework, but I guess these don't exist. Everything I look at either uses a weirdo home-grown templating language (like Angular in all its incarnations) or uses weirdo Javascript incarnations (like ...
[Corion]: ... Inferno.js, which uses ES2015) or uses some horrible amount of Javascript infrastructure before you can even render a single file.
[Corion]: I'd really like to create a dynamic frontend for my Google Keep clone, but so far, all the templating solutions seem to bring their own template language or require me to hand-code everything in (their own flavour of) Javascript. I'd like something ...
[Corion]: ... that can use templates from the HTML (via <script language="text/ template">... my template ...</script> and otherwise gets out of my way. But it seems that is not how the Javascript world is, currently :-/
[Corion]: I guess my question is, has anybody worked with React, Ember, Angular (v2, v4, v.whatever) or any other JS client-side dynamic rendering/virtual DOM thingie and found a simple, single-file solution like jQuery?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-03-27 19:00 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.