use strict, Sara.
Why are you using $theCgfile when your cycle assigns to $_?
If I get what you need, you should actually write:
use strict ; use warnings ; while (<>) { print if /\.c$/ ; }
Ciao!
--bronto
# Another Perl edition of a song:
# The End, by The Beatles
END {
$you->take($love) eq $you->made($love) ;
}
In reply to Re: greping for names
by bronto
in thread greping for names
by Sara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |