in reply to
Irregular Expressions
Well, you do have the option to use grep: try
perldoc -f grep
.
After you cleanup, you might try:
print grep(/^\//,split(/\n/,$input));
[download]
which greps only lines beginning with a '/'.
Comment on
Re: Irregular Expressions
Download
Code
Replies are listed 'Best First'.
Re: Re: Irregular Expressions
by
JoeJaz
(Monk)
on Jun 17, 2003 at 16:52 UTC
Thanks! When I tried using grep for perl, I lacked the farmiliarity with the syntax to get any results. This really helps me get a better understanding of how grep is used in perl.
[reply]
In Section
Seekers of Perl Wisdom