#! /usr/bin/perl -w # A simple, not very flexible bit of Perl to extract the sample code # from the User Guide. while(<>) { last if /chapter id="programming"/; } while(<>) { if (///; s/.+$//; s//g; print; } __DATA__ $Id: grep_sample_code,v 1.1 2007-12-10 05:13:11 jklowden Exp $