Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

ChuckularOne's scratchpad

by ChuckularOne (Parson)
on Jun 01, 2004 at 18:19 UTC ( #358347=scratchpad: print w/ replies, xml ) Need Help??

What I'm trying to do is find $rFile in $_ and add it to an array.

This matches only the whole string.

if ( length($rfile) > 0 ) { foreach $item (@clean){ $continue = index($item, $rfile); if ( $continue == 0 ) { $output[++$#output] = $item; } }
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2015-08-31 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (354 votes), past polls