in reply to Request to correct the perl code for getting substrings

You'll be able to use say if you specify use (version); where, for example, you replace the '(version)' with the version of Perl you're using -- perhaps 5.010, 5.012; or 5.014;) or use feature qw/say/;

If you don't know the version, try perl -v at your command prompt.

Update: Originally, forgot to include 5.10.

Replies are listed 'Best First'.
Re^2: Request to correct the perl code for getting substrings
by Aldebaran (Curate) on Apr 22, 2012 at 17:09 UTC

    this can't be helping him out much:

    use 1.010;

    Try

    use 5.10.0;