note
gmax
Unfortunately, sometimes, your understanding and the computer's understanding of the same action take different paths.<br>
When I say <br>
<code>
my $string = 'I am a "Perl programmer", you are a "piece of rust"';
$string =~ /"(.*)"/;
print "$1\n";
</code>
I expect the stupid machine to spit out <i>'Perl Programmer'</i>. Instead, I get <i>'Perl programmer", you are a "piece of rust'</i><br>
<br>
The machine has converted some understanding into action. But it wasn't my understanding. :(<br>
<br>
Therefore, programming is to translate my understanding into the machine's understanding. :)<br>
<code>
$string =~ /"([^"]*)"/; # 'Perl programmer'
</code>
<CODE>
_ _ _ _
(_|| | |(_|><
_|
</CODE>
153283
153283