-module(helloworld).
-import(string,[substr/3]).
-export([start/0]).
start() ->
Str1 = "hello World",
Str2 = substr(Str1,2,5),
io:fwrite("~p~n",[Str2]).
-module(helloworld).
-import(string,[substr/3]).
-export([start/0]).
start() ->
Str1 = "hello World",
Str2 = substr(Str1,2,5),
io:fwrite("~p~n",[Str2]).