Sidef::Sys::Sys
This object provides some methods related to the Sidef working system.
Sys.method(arg)
Sys.alarm() -> Obj
Return the
Sys.assert() -> Obj
Sys.assert_eq() -> Obj
Sys.assert_ne() -> Obj
Sys.bless() -> Obj
Sys.copy() -> Obj
Sys.die() -> Obj
Aliases: raise
Sys.eval() -> Obj
Sys.exec() -> Obj
Sys.exit(Number)
Exit the main program with a given code. If no argument is specified, the code 0 (SUCCESS) is assumed.
Sys.exit(0) # exit with success Sys.exit(-1) # exit with some error
Sys.getgrent() -> Obj
Sys.getgrgid() -> Obj
Sys.getgrnam() -> Obj
Sys.gethostbyaddr() -> Obj
Sys.gethostbyname() -> Obj
Sys.gethostent() -> Obj
Sys.getnetbyaddr() -> Obj
Sys.getnetbyname() -> Obj
Sys.getnetent() -> Obj
Sys.getpgrp() -> Obj
Sys.getppid() -> Obj
Sys.getpriority() -> Obj
Sys.getprotobyname() -> Obj
Sys.getprotobynumber() -> Obj
Sys.getprotoent() -> Obj
Sys.getpwent() -> Obj
Sys.getpwnam() -> Obj
Sys.getpwuid() -> Obj
Sys.getservbyname() -> Obj
Sys.getservbyport() -> Obj
Sys.getservent() -> Obj
Sys.isweak() -> Obj
Sys.nanosleep() -> Obj
Aliases: nanoSleep
Sys.open() -> Obj
Sys.opendir() -> Obj
Sys.osName() -> String
Return the name of the current operating system under which Sidef is running.
Sys.osName # 'linux' under Linux # 'MSWin32' under Windows
Aliases: osname().
Returns an object of type: Sidef::Types::String::String
Sidef::Types::String::String
Sys.print(obj1, obj2, ...) -> Bool
Print a list of argument to the standard output (STDOUT). Returns true on success.
Sys.print("hello", "-", "world");
Returns an object of type: Sidef::Types::Bool::Bool
Sidef::Types::Bool::Bool
Sys.printf() -> Obj
Sys.printh(handle, obj1, obj2, ...) -> Bool
Print a list of argument into a handle object. The handle object can be of type GLOB or anyother handle which has the print method. Returns true on success.
Sys.printh(STDERR, "This is a warning!\n");
Sys.read() -> Obj
Sys.readln() -> Obj
Aliases: scanln
Sys.ref() -> Obj
Sys.refaddr() -> Obj
Sys.reftype() -> Obj
Sys.run() -> Obj
Aliases: system
Sys.say() -> Obj
Aliases: println
Sys.select() -> Obj
Sys.setgrent() -> Obj
Sys.sethostent() -> Obj
Sys.setnetent() -> Obj
Sys.setpgrp() -> Obj
Sys.setpriority() -> Obj
Sys.setprotoent() -> Obj
Sys.setpwent() -> Obj
Sys.setservent() -> Obj
Sys.sidef() -> String
Return the full path of the 'sidef' main program.
Sys.sidef # under Linux, normally is '/usr/bin/sidef'
Sys.sleep() -> Obj
Sys.stderr() -> Obj
Sys.stdin() -> Obj
Sys.stdout() -> Obj
Sys.ualarm() -> Obj
Sys.umask() -> Obj
Sys.unweaken() -> Obj
Sys.user() -> Obj
Aliases: getlogin
Sys.usleep() -> Obj
Sys.warn() -> Obj
Sys.weaken() -> Obj
To install Sidef, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sidef
CPAN shell
perl -MCPAN -e shell install Sidef
For more information on module installation, please visit the detailed CPAN module installation guide.