I'm trying to assign a global variable when using ruby -e
`ruby -e "$a=3"`
-e:1: syntax error, unexpected '='
So it seems I can't assign global variables when using ruby -e
What I wanted is to assign $stdout = StringIO.new
so I capture the output
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:33:16 |
Calls: | 9,821 |
Calls today: | 9 |
Files: | 13,757 |
Messages: | 6,190,389 |