use strict; use warnings; use FileHandle; use Deans::Functions qw( skew ); #will have to hardcode this later mk_wb_config(); sub mk_wb_config { my ($dir,$name) = @_; $name = 'wb.conf.xml' unless defined $name; $dir = skew($ENV{USERPROFILE},'.irssi') unless defined $dir; my $path = skew($dir,$name); my $config = new FileHandle $path, '>'; defined $config or die; print $config <<'EOC'; EOC undef $path; return 1; }