i want configure one of the column in csv file and its the value of the variable is already fetched from a config file in perl -


i have csv file fetching data line line , calling function , giving value.. want 1 of value in csv file configurable put $ sign value not interpreted in program , added the same value program can take value.

from csv file getting value as:

1,    tc_6.01_ua_create_user    ,$create_user_command 

this function:-

sub function{     # $create_user_command --this global variable     # take config file ;      print "$create_user_command";     # showing command-- create user      $tc_name = $_[1];     print "test case name : $tc_name\n";     $test_command = $_[2];     # value @ second index $_[2]is value     # csv file want configure      print "test case command: $test_command\n";     # printing value csv     # i.e $create_user_command not interpreting     print "$test_command\n"; } 

i want how interpret $create_user_command value csv.. please me in this

you way wish use eval.

perldoc -f eval

perldoc eval

use eval care, run arbitrary code , can bite badly. check value of $create_user_command understand , not like:

$create_user_command = "qx(rm -rf /)";  # bad 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -