[EMAIL PROTECTED] wrote:
Can someone please tell me, why

my $pattern = /stuff/;
$x =~ $pattern;

or

my $pattern = "/stuff/";
$x =~ $pattern;

don't work the same as

$x =~ /stuff/;

That's best explained in the docs. Start reading:

    perldoc perlrequick

    perldoc perlop (the m// operator)

After having made a *serious* effort to understand regular expressions and the m// operator, please feel free to ask *specific* questions here.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to