Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
Re: What is the array that contains all of $1, $2, $3 ...?
Sherm meant to use the assignment operator rather than the binding
my @zzz = /(what)(ever)/;
That assumes that the string to be matched against is in $_.
If the string is instead in a named variable such as $str, then:
my @zzz = $str =~ /(what)(ever)/;
email: perl -le "print scalar reverse qq/moc.liamg0cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.
- » FAQ 6.15 How can I print out a word-frequency or line-frequency summary?
- — Next thread in » PERL Discussions
- » FAQ 5.4 How do I delete the last N lines from a file?
- — Previous thread in » PERL Discussions