Re: Scalars and Strict

2003-06-05 Thread Rob Dixon
Jeff Westman wrote: > Hi Rob, > > --- Rob Dixon <[EMAIL PROTECTED]> wrote: > > Jeff Westman wrote: > > > --- George Schlossnagle <[EMAIL PROTECTED]> wrote: > > > > > > > > On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- > > > > Senior Programmer Analyst --- WGO wrote: > > > > > > > > >

Re: Scalars and Strict

2003-06-05 Thread Jeff Westman
Hi Rob, --- Rob Dixon <[EMAIL PROTECTED]> wrote: > Jeff Westman wrote: > > --- George Schlossnagle <[EMAIL PROTECTED]> wrote: > > > > > > On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior > > > Programmer Analyst --- WGO wrote: > > > > > > > Jeff Westman wrote: > > > > > This may

Re: Scalars and Strict

2003-06-05 Thread Rob Dixon
Jeff Westman wrote: > --- George Schlossnagle <[EMAIL PROTECTED]> wrote: > > > > On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior > > Programmer Analyst --- WGO wrote: > > > > > Jeff Westman wrote: > > > > This may sound trivial, but I am trying to declare and assign > > > > multi

Re: Scalars and Strict

2003-06-05 Thread royce . wells
try my ($a,$b)=("apples","apples"); In the other example it was pulling values from an array of scalars. In your example you are only providing 1 scalar for 2 scalar variables to share. Royce "The right word may be effective, but no word was ever as effective as a rightly timed pause."

Re: Scalars and Strict

2003-06-05 Thread Jeff Westman
I like this solution! Cool Thanks George and David. JW --- George Schlossnagle <[EMAIL PROTECTED]> wrote: > > On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior > Programmer Analyst --- WGO wrote: > > > Jeff Westman wrote: > >> This may sound trivial, but I am trying to

Re: Scalars and Strict

2003-06-05 Thread Jeff Westman
yeah, that works, but I was trying to do it in one statement as a scalar assigment. Thanks JW --- Stuart White <[EMAIL PROTECTED]> wrote: > Would declaring all your variables with one my > suffice? then your first line before use strict; > should work. Like this: > > my ($a, $b); > $a = $b =

Re: Scalars and Strict

2003-06-05 Thread Stuart White
Would declaring all your variables with one my suffice? then your first line before use strict; should work. Like this: my ($a, $b); $a = $b = 'apple'; --- Jeff Westman <[EMAIL PROTECTED]> wrote: > This may sound trivial, but I am trying to declare > and assign multiple > scalars to the same v

Re: Scalars and Strict

2003-06-05 Thread George Schlossnagle
On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Jeff Westman wrote: This may sound trivial, but I am trying to declare and assign multiple scalars to the same variable in the same statement. This is what I have: #!/bin/perl -w $a = $b = "app

RE: Scalars and Strict

2003-06-05 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Jeff Westman wrote: > This may sound trivial, but I am trying to declare and assign multiple > scalars to the same variable in the same statement. This is what I > have: > > #!/bin/perl -w > $a = $b = "apple";# works > use strict; > my ($a = $b) = "apple"; # does not works do: my (