Hi All,
I am just starting on it and kind of overwhelmed with
the amazing capabilities of perl, how ever for now I
have 2 questions :
Q1) while(<>){
$data=$data . $_;
print $data;
print "loop\n"
}
and calling it like this c:\>perl simple.pl data.txt
it should print all the lines of data.txt once but it
doesn't but it print all the lines 2-3 times before
next ?
Q2)i want to write a foreach sort of loop such that
for each pattern matched, it should return me the
exact data matched for ex. :
$data contains :
abc xyz
def ghj
vbn xy
and pattern is /xy/
then loop shud be such that at each repetition
some local variable should be set to each matched word
like in this case in first pass $local should be set
to "xyz" then in next pass "xy"
Thanks for ur time.
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs