RE: Convert .bat files to .com

2004-06-11 Thread Stacy Doss
This is your offending line. system ('BAT2EXEC.COM $file') # $file contains the batch file(s) name. You might want to try this if you can't figure out what is wrong with that line. if($file =~ /(.*).bat/) { system('RENAME', "$file", "$1.exe"); } -Original Message-

RE: regular expression question

2004-04-01 Thread Stacy Doss
$a = "this is a (test)"; $a =~ s/\W+/_/g; HTH -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 01, 2004 11:28 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: regular expression question Thanks for the replyin

RE: what is this expr doing exactly?

2002-10-22 Thread Stacy Doss
Actually not a typo- Subs a path prefix in $curren with $self->{'Dir'} Thus $currn = '/usr/local/bin/perl'; $self->{'Dir'} = '/home/joe'; $currn =~ s+.*/([^/]*)+$self->{'Dir'}/$1+ if defined($self->{'Dir'}); # results in $currn == /home/joe/perl Here's what's happening; $currn =~ # I'll

RE: How can I figure out whether it is binary file or ASCII file under one directory?

2002-10-10 Thread Stacy Doss
Given a filename, use the -B or -T operators. See perldoc ferlfunc HTH Stacy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 1:34 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: How can I figure out whether it is binary fil

RE: Deep recursion on subroutine "Net::SNMP::_send_pdu" at C:/Perl/si te/lib/Net/SNMP

2002-07-26 Thread Stacy Doss
Fernando The is a 100 count limit on recursion within perl (to avoid possible infinite loops) To filter out just that warning (but let other problems through) perl < 5.6 local $SIG{__WARN__} = sub { $_[0] =~ /^Deep recursion/ or warn $_[0] }; perl >= 5.6: no warnings 'recursi