Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Splitting an array

Splitting an array

Scheduled Pinned Locked Moved ASP.NET
data-structuresquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tyrone_whitey
    wrote on last edited by
    #1

    I am trying to split a change amount into two parts, Bill Amt and Change Amt. Ex. (12.45) Here is the code that is not working even though it seems correct: my ($ChngeAmt, $Paper, $Cent, @money) @money = split(/./, $ChngeAmt); $Paper = $money[0]; $Cent = $money[1]; Why is this code not splitting??

    Ty

    J 1 Reply Last reply
    0
    • T Tyrone_whitey

      I am trying to split a change amount into two parts, Bill Amt and Change Amt. Ex. (12.45) Here is the code that is not working even though it seems correct: my ($ChngeAmt, $Paper, $Cent, @money) @money = split(/./, $ChngeAmt); $Paper = $money[0]; $Cent = $money[1]; Why is this code not splitting??

      Ty

      J Offline
      J Offline
      Jon Sagara
      wrote on last edited by
      #2

      What language is this? Perl?

      Jon Sagara I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So i had to leave the place as soon as possible. --Mr.Prakash Blog | Site | Articles

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups