Zoidberg

 view release on metacpan or  search on metacpan

man1/zoiduser.pod  view on Meta::CPAN

	zoid$ mode -

=head3 Examples

Some system command:

	zoid$ mplayer -vo sdl -ao sdl my_favorite_movie.avi

Perl code between brackets:

	zoid$ { print "This is perl code." }

A subroutine call to an object loaded in Zoidberg, 
perl code with a little source filtering:

	zoid$ ->Help->help
	 -or-
	zoid$ ->Help->help('objects')

A builtin command:

	zoid$ cd ..

A custom syntax (SQL) enforced on a block:

	zoid$ sql{ SELECT * FROM users WHERE clue > 0 }

And as said all of these can be combined:

	zoid$ cd /usr/local && { print "This is perl code." } | less || sql{SELECT * FROM users WHERE clue > 0}

This will first execute C<cd /usr/local>, on succes followed by C<{ print "This is perl code." } | less>
and if one of these failed we get to see the result of C<< sql{SELECT * FROM users WHERE clue > 0} >>

This makes the precedence of this example as follows.

	( ( 1 and ( 2 pipe 3 ) ) or 4 )

	1 = cd /usr/local
	2 = { print "This is perl code." }
	3 = less 
	4 = sql{SELECT * FROM users WHERE clue > 0}

=head2 Notes

(random notes that probably belong elsewhere in this document)

Files starting with a '-' are ignored in globs unless the glob starts with a '-', this is to
prevent globs from accidentally adding switches to a command.



( run in 0.443 second using v1.01-cache-2.11-cpan-49f99fa48dc )