Match Operator Example

Match Operator Example

foreach $file (@ARGV) {

unless (open(FILE, $file)){

warn "Can't open $file: $!\n";

} else {

print "$file:\n";

while () {

if (/^#include/) {

print "\t$_";

}

}

}

}

Previous slide Next slide Back to the first slide View Graphic Version