Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Buggy smartmatch on tied array?

by SankoR (Prior)
on Oct 05, 2013 at 16:13 UTC ( #1057045=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Tie::Array;
    tie my @array_t, 'Tie::StdArray';
    ...
    print "plain grep:   " . (grep {/a/} @array) . "\n";
    print "tied smatch:  " . (/a/ ~~ @array_t) . "\n";
    print "tied grep:    " . (grep {/a/} @array_t) . "\n";
    
  2. or download this
    Use of uninitialized value in pattern match (m//) at bugs.t line 6.
    Use of uninitialized value in pattern match (m//) at bugs.t line 6.
    ...
    plain grep:   1
    tied smatch:  
    tied grep:    1
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1057045]
Approved by NetWallah
Front-paged by NetWallah
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2021-01-27 23:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?