Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Unable to update correct corrosponding values in excel.

by LanX (Saint)
on Feb 11, 2021 at 20:47 UTC ( [id://11128270]=note: print w/replies, xml ) Need Help??


in reply to Unable to update correct corrosponding values in excel.

> my @array1 - qw{99999991,99999992,99999993,99999994,99999995};

What is that supposed to mean?

See also previous "your code makes no sense" comment from choroba

Additionally, did you ever bother to show indented code?

update

this is even more cryptic

my @array3 - qw{my emp id,my emp id,my emp id,Not my empployee,Not my empployee,Not my empployee,Not my empployee};

the RHS is not splitted on commas but whitespace

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

PS: @All: IMHO this smells like trolling, there is no lazy involuntary way to provide that amount of syntax errors.

Replies are listed 'Best First'.
Re^2: Unable to update correct corrosponding values in excel.
by GrandFather (Saint) on Feb 11, 2021 at 21:45 UTC
    "PS: @All: IMHO this smells like trolling, there is no lazy involuntary way to provide that amount of syntax errors."

    Nah, I don't think it is trolling. I think it is just someone who has a poor grasp of Perl and no understanding of the quote operators. I'm sure what was intended was:

    my @array1 = (99999991, 99999992, 99999993 99999994, 99999995);

    If that were the only mistake in the OP's post and if there hadn't been a whole string of posts from the same OP with similar lack of effort shown I'd overlook such obvious errors, provide some help and call it a win. As it is - meh.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
      for the records: I was focused on the '-' for assignment, not on the qw problem.

      update

      you don't even need strictures to notice that compilation error

      DB<295> my $$no1 Can't declare scalar dereference in "my" at

      ¯\_(ツ)_/¯

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        I have fixed this issue by decalring %HASH which will contain 2 values as Key value pair. In order to compare against other.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11128270]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 00:53 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found