Help for this page

Select Code to Download


  1. or download this
    C:\>perl -we "print ( split '_' , $myString )[1]"
    print (...) interpreted as function at -e line 1.
    syntax error at -e line 1, near ")["
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    C:\>perl -we "$myString = '123_456'; print( ( split '_' , $myString )[
    +1] )"
    456
    
  3. or download this
    C:\>perl -we "$myString = '123_456'; print( ( split /_/ , $myString )[
    +1] )"
    456