Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Clean way of adding values to complex data structure

by blokhead (Monsignor)
on Jul 22, 2009 at 21:00 UTC ( [id://782441]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (@$pages) {
      $_->{flag} = 1 if $_->{url} eq "/html/about.html";
    }
    
  2. or download this
    $_->{url} eq "/html/about.html" and $_->{flag} = 1 for @$pages;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found