RE: Re: Re: Sub not working as it should

2004-01-21 Thread Traeder, Philipp
You don't need to be sorry - it's the right choice ;-) Philipp > -Original Message- > > I am sorry I am migrating over to perl (love the built > in debugger) > --- Saadat Saeed <[EMAIL PROTECTED]> wrote: > > Thanks for the quick reponse - looks like I confuse > > my > > vbscript skills a

Re: Re: Re: Sub not working as it should

2004-01-21 Thread Saadat Saeed
I am sorry I am migrating over to perl (love the built in debugger) --- Saadat Saeed <[EMAIL PROTECTED]> wrote: > Thanks for the quick reponse - looks like I confuse > my > vbscript skills a bit... I am new to perl and am > migrating over to vbscript! > > Regards > > > --- Jeff 'japhy' Pinyan <[

Re: Re: Sub not working as it should

2004-01-21 Thread Saadat Saeed
Thanks for the quick reponse - looks like I confuse my vbscript skills a bit... I am new to perl and am migrating over to vbscript! Regards --- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: > On Jan 21, Saadat Saeed said: > > > opendir(DIR,"$line\\c\$\\Docume~12") or > >errornos($line

Re: Sub not working as it should

2004-01-21 Thread Jeff 'japhy' Pinyan
On Jan 21, Saadat Saeed said: > opendir(DIR,"$line\\c\$\\Docume~12") or >errornos($line,1,NEW); [snip] >sub errornos($machine,$errorno,FIL) { > print FIL "error $errorno $machine"; >} >For some reason the above code doesn't pass parameters >to my subroutine? How & why or am I m

Sub not working as it should

2004-01-21 Thread Saadat Saeed
#!C:/Perl/bin/perl.exe #use IO::File; $file = "comp.lst"; $new = "ee.lst"; open (FH, "$file") or die "Cannot open file $file $!"; open(NEW, ">> $new") or die "can't open $new: $!"; while($line = ) { chomp $line; opendir(DIR,"$line\\c\$\\Docume~12") or errornos($lin