http://www.perlmonks.org?node_id=1020152


in reply to Re: Data managing problem
in thread Data managing problem

perl -anle"$h{ $F[1] } = $_; }{ print for values %h"

Dosnt work for me!

~$ perl -anle"$h{ $F[1] } = $_; }{ print for values %h" syntax error at -e line 1, near "} =" Execution of -e aborted due to compilation errors.
Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
   
  Platform:
    osname=linux, osvers=3.2.0-23-generic, archname=x86_64-linux-gnu-thread-multi
    uname='linux komainu 3.2.0-23-generic #36-ubuntu smp tue apr 10 20:39:51 utc 2012 x86_64 x86_64 x86_64 gnulinux '

Replies are listed 'Best First'.
Re^3: Data managing problem
by BrowserUk (Patriarch) on Feb 22, 2013 at 13:24 UTC
    Dosnt work for me! perl -anle"..." Platform: osname=linux,

    You need to use single quotes 's not double quotes "s on *nix command lines.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Works with single quotes - Thank you.