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

Re^3: How do I stop printing a hash value

by PeterPeiGuo (Hermit)
on Dec 18, 2010 at 02:09 UTC ( [id://877725]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How do I stop printing a hash value
in thread How do I stop printing a hash value

Read the document for "grep" more carefully. The following might be a starting point for you, and you can continue from here:

print join(",", grep(!/\/\*(.*)\*\//, @$value));

Peter (Guo) Pei

Replies are listed 'Best First'.
Re^4: How do I stop printing a hash value
by iphone (Beadle) on Dec 18, 2010 at 05:41 UTC

    Thanks for all your help.The following works for me.

    if (scalar @$value) { # check that the arrayref isn't empty my @arr = grep(!/^\/\*/, @$value); print "\n ", join(", ", @arr), "\n\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-05-20 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found