Thread '$' in SQL with Perl's Variable?
(4 answers)
Opened by Updecrator at 2007-01-09 09:44
If you read in a file, a $ is not interpolated (if you do not use eval).
This works fine: table: Code: (dl
)
1 mysql> desc tbl_Test; test.sql:[sql]INSERT INTO tbl_Test VALUES('$test');[/sql] skript: Code: (dl
)
1 #!/usr/bin/perl result: Code: (dl
)
1 mysql> select * from tbl_Test; OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/) -- Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html Perl-Entwicklung: http://perl-services.de/ |