Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

(dkubb) Re: (2) golfing hash slices (dkubb = 30)

by dkubb (Deacon)
on Apr 13, 2001 at 10:21 UTC ( [id://72301]=note: print w/replies, xml ) Need Help??


in reply to Re: golfing hash slices (Russ = 57)
in thread golfing hash slices

You can drop the round brackets arount the <>, as we all use the $. (input line number variable) instead of @entries:

@{$entries[$.-2]}{@fieldnames}=split','while<>;  #47 characters

Of course, shortening the variable names would also reduce the size of this:

@{$e[@e]}{@f}=split','while<>;  #30 characters

In which case it is shorter to use the @e array size rather than $.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found