/[webpac2]/trunk/lib/WebPAC/Validate.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/WebPAC/Validate.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 838 by dpavlin, Thu May 24 14:42:35 2007 UTC revision 840 by dpavlin, Thu May 24 14:42:40 2007 UTC
# Line 67  sub new { Line 67  sub new {
67          my $self = {@_};          my $self = {@_};
68          bless($self, $class);          bless($self, $class);
69    
 warn dump( @_ );  
   
70          my $log = $self->_get_logger();          my $log = $self->_get_logger();
71    
72            $log->logdie("need path or delimiters_path") unless ( $self->{path} || $self->{delimiters_path} );
73    
74          if ( $self->{path} ) {          if ( $self->{path} ) {
75    
76                  my $v_file = read_file( $self->{path} ) ||                  my $v_file = read_file( $self->{path} ) ||
# Line 505  sub save_delimiters_templates { Line 505  sub save_delimiters_templates {
505    
506          my $log = $self->_get_logger;          my $log = $self->_get_logger;
507    
508            $path .= '.new' if ( -e $path );
509    
510          open(my $d, '>', $path) || $log->fatal("can't open $path: $!");          open(my $d, '>', $path) || $log->fatal("can't open $path: $!");
511          print $d $self->delimiters_templates;          print $d $self->delimiters_templates;
512          close($d);          close($d);

Legend:
Removed from v.838  
changed lines
  Added in v.840

  ViewVC Help
Powered by ViewVC 1.1.26