File::MimeInfo::Rox - Online Linux Manual PageSection : 3pm
Updated : 2020-10-31
Source : perl v5.30.3
Note : User Contributed Perl Documentation

NAMEFile::MimeInfo::Rox − Open files by mimetype "Rox style"

SYNOPSIS​ use File::MimeInfo::Magic; ​ use File::MimeInfo::Rox qw/:magic/; ​ ​ # open some file with the appropriate program ​ mime_system($somefile); ​ ​ # more verbose version ​ my $mt = mimetype($somefile) ​ || die "Could not find mimetype for $somefile\n"; ​ mime_system($somefile, $mt) ​ || die "No program to open $somefile available\n";

DESCRIPTIONThis module tries to mimic the behaviour of the rox file browser <http://rox.sf.net> when opening data files. It determines the mime type and searches in rox's Choices directories for a program to handle that mimetype. See the rox documentation for an extensive discussion of this mechanism.

EXPORTThe methods mime_exec and mime_system are exported, if you use the export tag :magic you get the same methods but File::MimeInfo::Magic will be used for mimetype lookup.

ENVIRONMENTThe environment variable CHOICESPATH is used when searching for rox's config dirs. It defaults to ​$ENV{HOME}/Choices:/usr/local/share/Choices:/usr/share/Choices

METHODSmime_system($file) mime_system($file, $mimetype, @_) Try to open $file with the appropriate program for files of it's mimetype. You can use $mimetype to force the mimetype. Also if you already know the mimetype it saves a lot of time to just tell it. If either the mimetype couldn't be determined or no appropriate program could be found undef is returned. If the actual system fails an exception is raised. All remaining arguments are passed on to the handler. mime_exec($file) mime_exec($file, $mimetype, @_) Like mime_system() but uses exec instead of system, so it never returns if successful. suggest_script_name($mimetype) Returns the list ($dir, $file) for the suggested place to write new script files (or symlinks) for mimetype $mimetype. The suggested dir doesn't need to exist.

AUTHORJaap Karssenberg <pardus@cpan.org> Maintained by Michiel Beijen <michiel.beijen@gmail.com>

COPYRIGHTCopyright (c) 2003, 2012 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSOFile::MimeInfo, File::MimeInfo::Magic, <http://rox.sourceforce.net>
0
Johanes Gumabo
Data Size   :   9,203 byte
man-File::MimeInfo::Rox.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 166,288
Visitor ID   :     :  
Visitor IP   :   3.147.77.119   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|File::MimeInfo::Rox.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|File::MimeInfo::Rox.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|File::MimeInfo::Rox.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|File::MimeInfo::Rox.3pm|43|'br══─}─══ |'br══─}─══ )