bluethundr has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; $^I = ".bak"; while (<>) { if (/^#!/) { $_ .= "## Copyright (C) 2008 by C'est Mois"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex not working
by linuxer (Curate) on Dec 27, 2008 at 15:43 UTC | |
|
Re: Regex not working
by Corion (Patriarch) on Dec 27, 2008 at 15:45 UTC | |
|
Re: Regex not working
by Anonymous Monk on Dec 27, 2008 at 15:48 UTC | |
by bluethundr (Pilgrim) on Dec 27, 2008 at 16:08 UTC | |
|
Re: Regex not working
by sasdrtx (Friar) on Dec 28, 2008 at 00:04 UTC |