Changeset 16617 for misc/runpugs/bin
- Timestamp:
- 06/02/07 20:51:51 (18 months ago)
- Files:
-
- 1 modified
-
misc/runpugs/bin/test_session.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
misc/runpugs/bin/test_session.pl
r16595 r16617 2 2 use strict; 3 3 use warnings; 4 use Perl6::Say;5 use lib '../lib';6 4 use Repl; 7 5 use Web::Terminal::Server::Session; … … 15 13 my $subref = sub {my $cmd=shift;my $res=$session->write($cmd);chomp $res; return ($res,$session->{'prompt'});}; 16 14 17 my $prompt =$session-> prompt;18 my $motd =$session-> output;15 my $prompt =$session->{'prompt'}; 16 my $motd =$session->{'output'}; 19 17 20 18 my $repl = new Repl {subref=>$subref,prompt=>$prompt,motd=>$motd}; … … 34 32 ); 35 33 #$new_session->init(); 36 if ( $new_session-> error== 1 ) {34 if ( $new_session->{'error'} == 1 ) { 37 35 # Something went wrong, failed to create a new session 38 36 print "Something went wrong, failed to create a new session:\n"; 39 print $new_session-> error;40 print $new_session-> output;37 print $new_session->{'error'}; 38 print $new_session->{'output'}; 41 39 } 42 40
