- Timestamp:
- 10/14/05 13:01:26 (3 years ago)
- Location:
- lib
- Files:
-
- 2 modified
-
Perl6/Pugs.pm (modified) (1 diff)
-
pugs/run.pod (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lib/Perl6/Pugs.pm
r7515 r7606 17 17 % pugs -e "{ 'Hello, ', @^x }.('World!').say" 18 18 Hello, World! 19 20 With Perl 5 embedding support (also note the C<--> in the C<#!> line): 21 22 #!/usr/bin/pugs -- 23 use v6; 24 use perl5:DBI; 25 my $dbh = DBI.connect('dbi:SQLite:dbname=test.db'); 26 $dbh.do("CREATE TABLE Test (Project, Pumpking)"); 19 27 20 28 =head1 DESCRIPTION -
lib/pugs/run.pod
r7342 r7606 24 24 WRITEME 25 25 26 =head2 Flags separation 27 28 Pugs uses C<--> to separate flags of Pugs itself and arguments to the program. 29 For example, this will print C<--help>: 30 31 $ pugs -e 'say @ARGS' -- --help 32 33 But this will show the help message of Pugs: 34 35 $ pugs -e 'say @ARGS' --help 36 37 For the same reason, to use Pugs in the Unix C<#!> line, add an extra C<--> 38 after it: 39 40 #!/usr/bin/pugs -- 41 say 'Hello, ', @ARGS, '!'; 42 26 43 =head2 Command line options 27 44
