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: | 292 |
Nodes: | 16 (2 / 14) |
Uptime: | 198:28:47 |
Calls: | 6,617 |
Calls today: | 1 |
Files: | 12,168 |
Messages: | 5,315,887 |