Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^6: grep confusion

by NetWallah (Canon)
on Sep 01, 2017 at 03:27 UTC ( [id://1198490]=note: print w/replies, xml ) Need Help??


in reply to Re^5: grep confusion
in thread grep confusion

You are probably missing a comma in your "unused' key.

This works:

DESCRIPTION => { .... }, UNUSED => {XlsColumn => -1} } );
My print statement works without complaint:
print grep ({ $DetailSheet{ColumnName}{$_}{XlsColumn} == 2 } keys %{ +$DetailSheet{ColumnName}} ) ,"\n"; # Note - grep params are enclosed in parens.

                All power corrupts, but we need electricity.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1198490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-24 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found