Questions tagged [perl-context]
4 questions
7
votes
3 answers
Is there a way to force void context in Perl?
I'm wondering this only out of geek curiosity on the way Perl works and how far you can go with things like this.
There are some functions that are written to act differently on each one of the three contexts.
With the following code as a very…

Francisco Zarabozo
- 3,676
- 2
- 28
- 54
4
votes
1 answer
Please, help me to understand the snippet from the "Programming Perl" book
I read the "Programming Perl" by By Tom Christiansen, brian d foy, Larry Wall, Jon Orwant. There is the following text which I failed to understand (the exact places which I do not understand are marked with bold):
What you really want to know is…

d.k
- 4,234
- 2
- 26
- 38
3
votes
3 answers
Why does File::Slurp return a scalar when it should return a list?
I am new to the File::Slurp module, and on my first test with it, it was not giving the results I was expecting. It took me a while to figure it out, so now I am interested in why I was seeing this certain behavior.
My call to File::Slurp looked…

BrianH
- 7,932
- 10
- 50
- 71
0
votes
1 answer
Perl compilation woes
I'm having some troble compiling this method:
#changes the names of the associations for $agentConf
#where the key value pairs in %associationsToChangeDict are the old and new values respectively
sub UpdateConfObjectAssociations{
my($agentConf,…

chickeninabiscuit
- 9,061
- 12
- 50
- 56