Search Results

Search: Posts Made By: Chubler_XL
7,988
Posted By Chubler_XL
Apologies, I forgot to set $num in my example: ...
Apologies, I forgot to set $num in my example:

$ text='QIl reçoit 5 000 $ à la livraison. 5 000 $?'
$ num=1
$ echo '((1)) ((2))' > temp.tmp
$ perl -i -CA -pne 'my $val='\'"${text}"\'';...
7,988
Posted By Chubler_XL
I found the problem with the perl code $ is...
I found the problem with the perl code $ is expanded in perl RE to avoid this I put the string in a perl variable with single quotes around it like this:

$ text='QIl reçoit 5 000 $ à la livraison....
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 10:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy