October 2004
Intermediate to advanced
336 pages
6h 27m
English
This function walks through a file that has paths indicated by indentation level, as shown in the following example:
lang
perl
src
math.pl
input.pl
readme
lib
tools.pm
c
inc
profile.h
names.h
src
update.c
readme
The program is passed a match string as an argument. It scans the result of the diamond operator (<>) input (either STDIN, or filenames passed as the arguments following the match string), and for every match, it prints out the full path of the matched line. For example, if it were asked to find "readme" with the previous example as input, it would print out the following:
lang/perl/src/readme ...
Read now
Unlock full access