in reply to Re: Always leaving one space in file
in thread Always leaving one space in file
Or could I count the length of @changes and compare it:my $list; my @changes = param('tellmessage'); ###################### if (@changes eq " ") { exit } ###################### open(FILE, ">eetnlinks.txt") || die "Can't open file!"; flock(FILE, 2) || die "Can't lock file!"; #truncate(FILE,0); foreach $list (@changes) { chomp ($list); print FILE "$list\n"; } close(FILE);
If that would work, I don't know how to count the length of the string... ?if (@changes > 1) { exit; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Always leaving one space in file
by vek (Prior) on Apr 23, 2003 at 15:31 UTC | |
|
Re: Re: Re: Always leaving one space in file
by zby (Vicar) on Apr 23, 2003 at 15:32 UTC | |
by Anonymous Monk on Apr 23, 2003 at 15:42 UTC | |
by zby (Vicar) on Apr 23, 2003 at 17:41 UTC | |
|
Re: Re: Re: Always leaving one space in file
by Anonymous Monk on Apr 23, 2003 at 15:32 UTC |