Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit d2d707d

Browse files
reviewed example in documentation
1 parent d481bf3 commit d2d707d

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

docs/connection.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!--
66
generated by Pod::Simple::HTML v3.35,
77
using Pod::Simple::PullParser v3.35,
8-
under Perl v5.026000 at Tue Jul 24 12:48:06 2018 GMT.
8+
under Perl v5.026000 at Tue Jul 24 14:30:29 2018 GMT.
99
1010
If you want to change this HTML document, you probably shouldn't do that
1111
by changing it directly. Instead, see about changing the calling options

docs/connector.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!--
66
generated by Pod::Simple::HTML v3.35,
77
using Pod::Simple::PullParser v3.35,
8-
under Perl v5.026000 at Tue Jul 24 12:48:06 2018 GMT.
8+
under Perl v5.026000 at Tue Jul 24 14:30:29 2018 GMT.
99
1010
If you want to change this HTML document, you probably shouldn't do that
1111
by changing it directly. Instead, see about changing the calling options
@@ -40,7 +40,9 @@ <h1><a class='u'
4040
cpanm WebService::Hexonet::Connector
4141
# NOTE: We suggest to use cpanm (App::cpanminus) for several reasons.
4242

43-
# Import the Hexonet package
43+
44+
use strict;
45+
use warnings;
4446
use WebService::Hexonet::Connector;
4547

4648
# Create a connection with the URL, entity, login and password
@@ -61,12 +63,14 @@ <h1><a class='u'
6163

6264
# Display the result in the format you want
6365
my $res = $response-&#62;as_list();
64-
my $res = $response-&#62;as_list_hash();
65-
my $res = $response-&#62;as_hash();
66+
$res = $response-&#62;as_list_hash();
67+
$res = $response-&#62;as_hash();
6668

6769
# Get the response code and the response description
6870
my $code = $response-&#62;code();
69-
my $description = $response-&#62;description();</pre>
71+
my $description = $response-&#62;description();
72+
73+
print &#34;$code $description&#34;;</pre>
7074

7175
<h1><a class='u'
7276
name="DESCRIPTION"

docs/hexonet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!--
66
generated by Pod::Simple::HTML v3.35,
77
using Pod::Simple::PullParser v3.35,
8-
under Perl v5.026000 at Tue Jul 24 12:48:06 2018 GMT.
8+
under Perl v5.026000 at Tue Jul 24 14:30:29 2018 GMT.
99
1010
If you want to change this HTML document, you probably shouldn't do that
1111
by changing it directly. Instead, see about changing the calling options

docs/response.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!--
66
generated by Pod::Simple::HTML v3.35,
77
using Pod::Simple::PullParser v3.35,
8-
under Perl v5.026000 at Tue Jul 24 12:48:06 2018 GMT.
8+
under Perl v5.026000 at Tue Jul 24 14:30:29 2018 GMT.
99
1010
If you want to change this HTML document, you probably shouldn't do that
1111
by changing it directly. Instead, see about changing the calling options

docs/util.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!--
66
generated by Pod::Simple::HTML v3.35,
77
using Pod::Simple::PullParser v3.35,
8-
under Perl v5.026000 at Tue Jul 24 12:48:06 2018 GMT.
8+
under Perl v5.026000 at Tue Jul 24 14:30:29 2018 GMT.
99
1010
If you want to change this HTML document, you probably shouldn't do that
1111
by changing it directly. Instead, see about changing the calling options

lib/WebService/Hexonet/Connector.pm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ WebService::Hexonet::Connector - Connector library for the insanely fast L<HEXON
3131
cpanm WebService::Hexonet::Connector
3232
# NOTE: We suggest to use cpanm (App::cpanminus) for several reasons.
3333
34-
# Import the Hexonet package
34+
35+
use strict;
36+
use warnings;
3537
use WebService::Hexonet::Connector;
3638
3739
# Create a connection with the URL, entity, login and password
@@ -52,13 +54,14 @@ WebService::Hexonet::Connector - Connector library for the insanely fast L<HEXON
5254
5355
# Display the result in the format you want
5456
my $res = $response->as_list();
55-
my $res = $response->as_list_hash();
56-
my $res = $response->as_hash();
57+
$res = $response->as_list_hash();
58+
$res = $response->as_hash();
5759
5860
# Get the response code and the response description
5961
my $code = $response->code();
6062
my $description = $response->description();
6163
64+
print "$code $description";
6265
6366
=head1 DESCRIPTION
6467

0 commit comments

Comments
 (0)