behavior of m// operator
- From: Nathan <user@xxxxxxxxxxxx>
- Date: Tue, 29 Jul 2008 23:47:03 -0500
According to the documentation this program should print nothing since m// uses the last successful pattern match from m//, split, etc. However on my linux box it prints 1:
#!/usr/bin/perl -w
$a = "a";
$b = "b";
split /a/,$a;
print $b =~ m//;
Is the documentation wrong?
-Nathan
.
- Follow-Ups:
- Re: behavior of m// operator
- From: xhoster
- Re: behavior of m// operator
- From: Zak B. Elep
- Re: behavior of m// operator
- Prev by Date: Re: what is the expression mean?
- Next by Date: Re: Append newline to files
- Previous by thread: Question about variable scope
- Next by thread: Re: behavior of m// operator
- Index(es):