Perl での部分参照の作り方。
The output may be like this:
value_2_1
value_2_1
It is because -> is omittable when it's between [ ] or { }.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main () { | |
var tmp = null; | |
for (var i=0;++i<101;) { | |
print ((tmp = (i%3?'':'Fizz')+(i%5?'':'Buzz')) == '' ? i : tmp); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main () { | |
var age = 21; | |
var name = {"first":"taro","last":"yamada"}; | |
print ("Happy birthday, ${name['first'].toUpperCase()}, you're ${age++} today."); | |
} |
The whole install procedure is like the following.
You would have to do 7 steps.
- Download the latest tar file, and expand it.
- Move it to /usr/local/, and make a symbolic link to the folder.
- Add path to MongoDB binaries.
- Make an user that "mongod" runs on, and group that owns the user.
NewerOlder