in reply to Re: search for duplicated via IPTC field (OS X)
in thread search for duplicated via IPTC field (OS X)

So this would go from char 0 to the 15th?

my $oneName = substr($names, 0, 15);

Replies are listed 'Best First'.
Re^3: search for duplicated via IPTC field (OS X)
by Utilitarian (Vicar) on Aug 10, 2010 at 07:09 UTC
    It doesn't hurt to try it out yourself, in fact you may discover new things and waste a whole afternoon explaining the behaviour you observe ;)
    $ perl -e 'my $names="12345678901234567890"; my $oneName = substr($na +mes, 0, 15); print "$oneName\n";' 123456789012345
    So yes, that appears to do what you want.

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
      I don't have a compiler or know how to execute the code, that's going to be the next part of the operation or I would be testing, well after I ask where this bit of code goes ;) Normally in HTML, which I'm not very good at, it kinds of makes sense in an English written way but this code is like JavaScript and that stuff always throws me. Thanks for the help.
        From the original code it looks as though you're on a Unix system. Type perl -v at the command prompt.

        Now chmod +x <FILENAME> where FILENAME is the name of your Perl script. now you can run the script and see it's output.

        May I strongly recommend Learning Perl at this point, your last post indicates that you have a bit of reading to do before you can modify scripts to get them to work as you desire and while no one here minds giving someone a pointer to the solution they are missing, you do have to do a little work yourself.

        print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."