Zoidberg

 view release on metacpan or  search on metacpan

man1/zoidbuiltins.pod  view on Meta::CPAN


=item read [-r] I<var1> I<var2 ..>

Read a line from STDIN, split the line in words 
and assign the words to the named enironment variables.
Remaining words are stored in the last variable.

Unless '-r' is specified the backslash is treated as
an escape char and is it possible to escape the newline char.


=item readline

Returns a line of input.


=item reload I<module> [I<module>, ..]


=item reload I<file> [I<file>, ..]

Force (re-)loading of a module file. Typically used for debugging modules,
where you reload the module after each modification to test it interactively.

TODO: recursive switch that scans for 'use' statements


=item select

Given a list of items presents the user with a menu and returns
the choice made or undef.


=item set [+-][abCefnmnuvx]


=item set [+o|-o] I<option>

Set or unset a shell option. Although sometimes confusing
a '+' switch unsets the option, while the '-' switch sets it.

Short options correspond to the following names:

	a  =>  allexport  *
	b  =>  notify
	C  =>  noclobber
	e  =>  errexit    *
	f  =>  noglob
	m  =>  monitor    *
	n  =>  noexec     *
	u  =>  nounset    *
	v  =>  verbose
	x  =>  xtrace     *
	*) Not yet supported by the rest of the shell

See L<zoiduser> for a description what these and other options do.

FIXME takes also hash arguments


=item setenv I<var> I<value>

Like B<export>, but with a slightly different syntax.


=item SetHistory

Takes either an array or an array reference and uses that
as new commandline history.

I<This routine does not alter the history file.>


=item source I<file>

Run the B<perl> script I<file>. This script is B<NOT> the same
as the commandline syntax. Try using L<Zoidberg::Shell> in these
scripts.


=item symbols [-a|--all] [I<class>]

Output a listing of symbols in the specified class.
Class defaults to the current perl namespace, by default
C<Zoidberg::Eval>.

All symbols are prefixed by their sigil ('$', '@', '%', '&'
or '*') where '*' is used for filehandles.

By default sub classes (hashes containing '::')
and special symbols (symbols without letters in their name)
are hidden. Use the --all switch to see these.


=item true

A command that never fails and does absolutely nothing.


=item umask

TODO


=item unalias I<name>

Remove an alias definition.


=item unsetenv I<var>

Set I<var> to undefined.


=item wait

TODO


=item which [-a|--all|-m|--module] ITEM

Finds ITEM in PATH or INC if the -m or --module option was used.
If the -a or --all option is used all it doesn't stop after the first match.

TODO it should identify aliases

TODO what should happen with contexts other then CMD ?


=back

=head1 SEE ALSO

L<zoiduser>(1), L<perl>(1), L<http://github.com/jberger/Zoidberg>



( run in 1.920 second using v1.01-cache-2.11-cpan-5a3173703d6 )