Re: Is it legal ???
A Taylor wrote: > Hi all, I am trying to declare some variables and was wondering what the > best way to do this was. Is it legal to do something like this: > my (@pairs, $ENV, $buffer); > The reason I ask is that I am not sure if its cool to have Arrays and Scalar > vars within the same brackets. > Thanks for your help > > Anadi > > You are just a dewdrop, and as you meditate the dewdrop starts slipping from > the petals of the Lotus towards the ocean. When the meditation is complete, > the dewdrop has disappeared into the ocean. Or you can say, the ocean has > disappeared into the dewdrop. > > Bhagwan Shree Rajneesh. > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com yes, it's legal to do that. @pair, $ENV and $buffer will all be tagged with 'my' scope. david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it legal ???
I declare like that all of the time on WinNT and it seems to work fine. Anyway, if you do the 'perl -c -w scriptname.pl' test AND use strict, any syntax errors will become (painfully!) obvious ;-) "A Taylor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, I am trying to declare some variables and was wondering what the > best way to do this was. Is it legal to do something like this: > my (@pairs, $ENV, $buffer); > The reason I ask is that I am not sure if its cool to have Arrays and Scalar > vars within the same brackets. > Thanks for your help > > Anadi > > > > You are just a dewdrop, and as you meditate the dewdrop starts slipping from > the petals of the Lotus towards the ocean. When the meditation is complete, > the dewdrop has disappeared into the ocean. Or you can say, the ocean has > disappeared into the dewdrop. > > Bhagwan Shree Rajneesh. > > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it legal ???
A Taylor wrote: > > Hi all, I am trying to declare some variables and was wondering what the > best way to do this was. Is it legal to do something like this: > my (@pairs, $ENV, $buffer); Yes. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE - is it legal
Thanks all your help has been much appreciated Anadi ^_^ You are just a dewdrop, and as you meditate the dewdrop starts slipping from the petals of the Lotus towards the ocean. When the meditation is complete, the dewdrop has disappeared into the ocean. Or you can say, the ocean has disappeared into the dewdrop. Bhagwan Shree Rajneesh. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it legal ???
Maybe you can refer to use vars ( perldoc -m vars). Rgds, Connie - Original Message - From: "A Taylor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 20, 2002 4:23 AM Subject: Is it legal ??? > Hi all, I am trying to declare some variables and was wondering what the > best way to do this was. Is it legal to do something like this: > my (@pairs, $ENV, $buffer); > The reason I ask is that I am not sure if its cool to have Arrays and Scalar > vars within the same brackets. > Thanks for your help > > Anadi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is it legal ???
You can do that, but if you're planning on assigning the variables any value other than (), then you will want to put the array LAST. Otherwise I don't know if Perl will let the array suck up all of the values you try to assign. This way you can be sure that your scalars receive a value. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 10:29 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Is it legal ??? In a message dated 8/19/2002 3:25:35 PM US Eastern Standard Time, [EMAIL PROTECTED] writes: > Hi all, I am trying to declare some variables and was wondering what the > best way to do this was. Is it legal to do something like this: > my (@pairs, $ENV, $buffer); > The reason I ask is that I am not sure if its cool to have Arrays and > Scalar > vars within the same brackets. > Thanks for your help > > Anadi > No, I'm sorry but doing something of that nature is punishable by 10 years in prison and/or $20,000 in fines. Dra'Kon [King of bored out of his mind wise "butt" remarks] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it legal ???
In a message dated 8/19/2002 3:25:35 PM US Eastern Standard Time, [EMAIL PROTECTED] writes: > Hi all, I am trying to declare some variables and was wondering what the > best way to do this was. Is it legal to do something like this: > my (@pairs, $ENV, $buffer); > The reason I ask is that I am not sure if its cool to have Arrays and > Scalar > vars within the same brackets. > Thanks for your help > > Anadi > No, I'm sorry but doing something of that nature is punishable by 10 years in prison and/or $20,000 in fines. Dra'Kon [King of bored out of his mind wise "butt" remarks]
Is it legal ???
Hi all, I am trying to declare some variables and was wondering what the best way to do this was. Is it legal to do something like this: my (@pairs, $ENV, $buffer); The reason I ask is that I am not sure if its cool to have Arrays and Scalar vars within the same brackets. Thanks for your help Anadi You are just a dewdrop, and as you meditate the dewdrop starts slipping from the petals of the Lotus towards the ocean. When the meditation is complete, the dewdrop has disappeared into the ocean. Or you can say, the ocean has disappeared into the dewdrop. Bhagwan Shree Rajneesh. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]