[ create a new paste ] login | about

Link: http://codepad.org/9nYmaxII    [ raw code | output | fork ]

Ruby, pasted on Oct 29:
1
my_array = ['first', /* 'second', */ 'third', 'fourth']


Output:
1
2
3
4
5
6
7
Line 1: invalid regular expression; there's no previous pattern, to which '*' would define cardinality at 1: /* 'second', */
Line 1: syntax error, unexpected tSTRING_BEG, expecting ']'
my_array = ['first', /* 'second', */ 'third', 'fourth']
                                      ^
Line 1: syntax error, unexpected ',', expecting $end
my_array = ['first', /* 'second', */ 'third', 'fourth']
                                             ^


Create a new paste based on this one


Comments: