Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of undefined value #14

Open
alancam opened this issue Mar 25, 2014 · 1 comment
Open

Use of undefined value #14

alancam opened this issue Mar 25, 2014 · 1 comment

Comments

@alancam
Copy link

alancam commented Mar 25, 2014

Hello,

When I try and run your script under Strawberry Perl, I get undefined value errors on $ch, $self and ver.

They seem to loop over and over, giving endless errors.

Any ideas?

@bfontaine
Copy link

I have the same issue with the 1.0 release when running the script without a tty. You can reproduce with:

echo foo | ssh localhost /usr/local/bin/speedread

(replace /usr/local/bin/speedread with your binary location)

Update: here is the output:

$ echo foo | ssh localhost /usr/local/bin/speedread
Use of the encoding pragma is deprecated at /usr/local/bin/speedread line 39.
stty: /dev/tty: Device not configured
                    v
                   foo                                          250 wpmUse of uninitialized value in vec at /usr/local/bin/speedread line 252, <> line 1.
getc() on closed filehandle $self at /usr/local/bin/speedread line 260, <> line 1.
Use of uninitialized value $ch in string eq at /usr/local/bin/speedread line 158, <> line 1.
Use of uninitialized value $ch in string eq at /usr/local/bin/speedread line 161, <> line 1.
Use of uninitialized value $ch in string eq at /usr/local/bin/speedread line 164, <> line 1.
Use of uninitialized value in vec at /usr/local/bin/speedread line 252, <> line 1.
getc() on closed filehandle $self at /usr/local/bin/speedread line 260, <> line 1.
Use of uninitialized value $ch in string eq at /usr/local/bin/speedread line 158, <> line 1.
Use of uninitialized value $ch in string eq at /usr/local/bin/speedread line 161, <> line 1.
Use of uninitialized value $ch in string eq at /usr/local/bin/speedread line 164, <> line 1.
Use of uninitialized value in vec at /usr/local/bin/speedread line 252, <> line 1.
getc() on closed filehandle $self at /usr/local/bin/speedread line 260, <> line 1.
Use of uninitialized value $ch in string eq at /usr/local/bin/speedread line 158, <> line 1.
Use of uninitialized value $ch in string eq at /usr/local/bin/speedread line 161, <> line 1.
Use of uninitialized value $ch in string eq at /usr/local/bin/speedread line 164, <> line 1.
…snip…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants