Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by iphone (Beadle)
on Dec 18, 2010 at 01:07 UTC ( [id://877717]=note: print w/replies, xml ) Need Help??


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

ya..right,to be be exact my query is how do I grep for a comment?

  • Comment on Re^2: How do I stop printing a hash value

Replies are listed 'Best First'.
Re^3: How do I stop printing a hash value
by ww (Archbishop) on Dec 18, 2010 at 01:58 UTC

    Q2. A2.   RTFM: perldoc -f grep

    Q1. A1.   perldoc perlretut

    or, work out what's happening here:

    ... for my $var(@var) { # as ikegami said, you're not working +with a hash if ( $var !~ /\/* .*? \/*/ ) { print "\$var, \'$var\', is (something for iphone to fill in) \ +n"; } else { print "\$var, \'$var\', is (the reverse) \n"; } } ...
Re^3: How do I stop printing a hash value
by iphone (Beadle) on Dec 18, 2010 at 01:29 UTC
    I mean I tried the below but doesnt seem to work for me
    if ((scalar @$value) && not grep (/\/\*(.*)\*\//,@$value)) { }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2025-06-13 22:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.