Skip to content

Commit

Permalink
AdcFile option renamed to AdcFromFile
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Oct 5, 2012
1 parent 79e48fb commit 73a19ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/ucpclient.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl

# The simplest fake SMSC
# The simple EMI-UCP protocol client
#
# Example:
# ucpclient.pl 127.0.0.1 12345 ot=51 adc=123 oadc=456 amsg=TEST
Expand Down Expand Up @@ -58,9 +58,9 @@

$conn->login_session;

if ($opts{AdcFile}) {
my $fh = IO::File->new($opts{AdcFile})
or die "Can not open file `$opts{AdcFile}': $!";
if ($opts{AdcFromFile}) {
my $fh = IO::File->new($opts{AdcFromFile})
or die "Can not open file `$opts{AdcFromFile}': $!";
while (my $adc = $fh->getline) {
chomp $adc;
next unless $adc =~ /^\d+$/;
Expand Down

0 comments on commit 73a19ae

Please sign in to comment.