- operators - What does =~ do in Perl? - Stack Overflow
14 The '=~' operator is a binary binding operator that indicates the following operation will search or modify the scalar on the left The default (unspecified) operator is 'm' for match The matching operator has a pair of characters that designate where the regular expression begins and ends Most commonly, this is ' ' Give Perl Re tutorial
- syntax - What are the differences between $, @, % in a Perl variable . . .
Here the sigil changes to $ to denote that you are accessing a scalar, however the trailing [0] tells perl that it is accessing a scalar element of the array in _ or in other words, @_
- operators - What is the difference between || and or in Perl . . .
53 From Perl documentation: OR List operators On the right side of a list operator, it has very low precedence, such that it controls all comma-separated expressions found there
- Perl: Use s (replace) and return new string - Stack Overflow
In Perl, the operator s is used to replace parts of a string Now s will alter its parameter (the string) in place I would however like to replace parts of a string befor printing it, as in pri
- Whats the use of lt; gt; in Perl? - Stack Overflow
@pst, <> is not a file handle, "null" or otherwise It's an operator Specifically, the readline operator There's a reference to it as the "angle operator" in perlvar, although there isn't actually any such operator The angle brackets are used by two operators: readline or glob The operator depends on the contents of the brackets
- Perl flags -pe, -pi, -p, -w, -d, -i, -t? - Stack Overflow
Below are the flags that I encounter most often, and I don't have a clue what they mean: perl -pe perl -pi perl -p perl -w perl -d perl -i perl -t I will be very grateful if you tell me what each of those mean and some use cases for them, or at least tell me a way of finding out their meaning
- How do I remove duplicate items from an array in Perl?
Also, using core modules doesn't guarantee anything, as different Perl versions can add or remove core modules from the distribution, so portability is still depending on that
- How can I call a shell command in my Perl script?
What would be an example of how I can call a shell command, say 'ls -a' in a Perl script and the way to retrieve the output of the command as well?
|