using a string as a scalar under strict
From: Bzzt (stafili_at_hotmail.com)
Date: 07/28/04
- Next message: krakle: "Re: Undefined subroutine CGI::Vars"
- Previous message: Bzzt: "passing hashes form packages"
- Next in thread: Jupiterhost.Net: "Re: using a string as a scalar under strict"
- Reply: Jupiterhost.Net: "Re: using a string as a scalar under strict"
- Reply: whaity_at_isalazy***.com: "Re: using a string as a scalar under strict"
- Maybe reply: WilliamGunther_at_aol.com: "Re: using a string as a scalar under strict"
- Reply: Charles K. Clarkson: "RE: using a string as a scalar under strict"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: beginners@perl.org Date: Wed, 28 Jul 2004 21:20:18 +0300
The followin code doesn't work if I use strict. Is the only solution not to
use strict.
#!/usr/local/bin/perl
use strict;
my $blues;
$a = "blues";
$blues = "jazz";
print ${$a};
- Next message: krakle: "Re: Undefined subroutine CGI::Vars"
- Previous message: Bzzt: "passing hashes form packages"
- Next in thread: Jupiterhost.Net: "Re: using a string as a scalar under strict"
- Reply: Jupiterhost.Net: "Re: using a string as a scalar under strict"
- Reply: whaity_at_isalazy***.com: "Re: using a string as a scalar under strict"
- Maybe reply: WilliamGunther_at_aol.com: "Re: using a string as a scalar under strict"
- Reply: Charles K. Clarkson: "RE: using a string as a scalar under strict"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]