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:
> > > >
> > > > >
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
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
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."
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
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 =
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
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
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 (