Flickr

www.flickr.com
Posts mit dem Label perl werden angezeigt. Alle Posts anzeigen
Posts mit dem Label perl werden angezeigt. Alle Posts anzeigen

Montag, 5. Juli 2010

Exporting examination codes from Siemens Syngo RIS

View my short perl script to create a list of examinations codes from a Siemens Syngo RIS.

First create an export of the examination tree. Usually this file ends with .tre.

They you can apply this script to that file and you receive a list of all examination codes.

Use at your own risk!

Here you are:


get_exam_code.pl

#!/usr/bin/perl

open IN, "<$ARGV[0]" || die;

while ($data=){
while ($data=~s/[\w \d\xe4\xf6\xfc].\x00([\w \d\xe4\xf6\xfc]{1,})// ){
print "$1\n";
$hits++
}
}

close IN;

print "Hits: $hits\n";


Donnerstag, 1. Januar 2009

Got it DBD::mysql DBI issue

I constantly got this errormessage:

Can't load '/opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/DBI/DBI.bundle' for module DBI: dlopen(/opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/DBI/DBI.bundle, 1): Symbol not found: _PL_sv_no
Referenced from: /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/DBI/DBI.bundle
Expected in: dynamic lookup
at /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/DBI.pm line 263
BEGIN failed--compilation aborted at /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/DBI.pm line 263.
Compilation failed in require at /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/Mysql.pm line 11.
Compilation failed in require at /scripts/is_everything_there.pl line 4.
BEGIN failed--compilation aborted at /scripts/is_everything_there.pl line 4.


The clue for me was changing the PERL path from #!/usr/bin/perl to #!/opt/local/bin/perl . On Unix console try "which perl" to see what fits to your system.

I hope this helps somenone.