⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Backport191
All Projects
Ruby
»
Backport191
Overview
Activity
Issues
Like
Download (302 Bytes)
Backport #2762
» test.rb
test script -
JonnyJD (Johannes Dewender)
, 02/19/2010 07:13 AM
#!/usr/bin/env ruby
puts
"Using ruby
#{
RUBY_VERSION
}
on
#{
RUBY_PLATFORM
}
from
#{
RUBY_RELEASE_DATE
}
"
puts
"File.read:"
File
.
read
(
'testString.txt'
).
sub!
(
/foo.*/
,
"hallo"
)
puts
" success"
puts
"backticks:"
`cat testString.txt`
.
sub!
(
/foo.*/
,
"hallo"
)
puts
" success"
puts
"No problem in this version"
« Previous
1
2
Next »
(2-2/2)
Loading...