Re: Perl reserved words

2017-04-24 Thread SSC_perl
> On Apr 23, 2017, at 11:51 AM, Shlomi Fish  wrote:
> 
> It is not a reserved word of Perl. No idea about MySQL.

Must be something in the code then.  I’ll try it again and see if it 
still happens.  If so, I’ll make sure to mention the error instead of just 
saying “it doesn’t work”. ;)  That’s what I get for letting too much time pass 
before asking a question.

Thanks,
Frank
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: Perl reserved words

2017-04-23 Thread lee
Shlomi Fish  writes:

> Hi Frank,
>
> On Sun, 23 Apr 2017 10:07:56 -0700
> SSC_perl  wrote:
>
>>  Is ‘vendor’ a reserved word of some type in either Perl, MySQL, or
>> DBM?  
>
> It is not a reserved word of Perl. No idea about MySQL.


,
| mysql> create database vendor;
| Query OK, 1 row affected (0.00 sec)
| 
| mysql> drop database vendor;
| Query OK, 0 rows affected (0.00 sec)
| 
| mysql> 
`


So far, I've only had trouble starting identifiers with an at sign,
which mysql uses to mark variables.


,
| mysql> create database `@vendor`;
| Query OK, 1 row affected (0.00 sec)
| 
| mysql> drop database `@vendor`;
| Query OK, 0 rows affected (0.00 sec)
| 
| mysql> 
`


Nonetheless, don't do stupid things like this.


>> I tried to add a ‘vendor’ field to SurfShop but it didn’t work.  I

"Didn't work" is an error ;)

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: Perl reserved words

2017-04-23 Thread Shlomi Fish
Hi Frank,

On Sun, 23 Apr 2017 10:07:56 -0700
SSC_perl  wrote:

>   Is ‘vendor’ a reserved word of some type in either Perl, MySQL, or
> DBM?  

It is not a reserved word of Perl. No idea about MySQL.

> I tried to add a ‘vendor’ field to SurfShop but it didn’t work.  I
> don’t recall exactly what happened now (sorry), but I had to settle on
> another word to get it to work.
> 
>   Any ideas on what it could have been?
> 
> Thanks,
> Frank
> 
> It’s not listed here:
> http://learn.perl.org/docs/keywords.html
> 



-- 
-
Shlomi Fish   http://www.shlomifish.org/
Let’s talk about restores instead of backups - http://is.gd/WatQqu

A rose by a name picked by Chuck Norris, will smell sweeter.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/