Burak's Journal
http://use.perl.org/~Burak/journal/
Burak's use Perl Journalen-ususe Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners.2012-02-08T22:45:10+00:00pudgepudge@perl.orgTechnologyhourly11970-01-01T00:00+00:00Burak's Journalhttp://use.perl.org/images/topics/useperl.gif
http://use.perl.org/~Burak/journal/
reftype() lazziness
http://use.perl.org/~Burak/journal/39605?from=rss
<p>I was doing a lot of <code>foo() if ref($thing) eq 'ARRAY'</code> or <code>foo() if ref($thing) eq 'HASH'</code> (even something idiotic like <code>foo() if ref($thing) && "$thing" =~ m{.+?=HASH(0x.+?)}</code>) checks inside a pet project of mine. So thought about making it in an elegant way instead. I mean <code>ref($thing)->array</code> or even <code>ref($thing)->is_array</code> seemed much better as a syntactic sugar. However <code>ref()</code> is clearly not the way to go for the implementation as it fails to identify the underlying type of objects. So, the obvious choice is <code>Scalar::Util::reftype</code>. I've named the module <a href="http://search.cpan.org/dist/Scalar-Util-Reftype/">Scalar::Util::Reftype</a>. In a way, I can say that it's similar to <code>File::stat</code>. Btw, <code>Scalar::Util::reftype</code> has one oddity: unlike <code>CORE::ref</code> it returns undef if you pass a non-ref parameter to it. So, instead of <code>foo() if reftype($thing) eq 'ARRAY'</code> one must say <code>foo() if defined reftype($thing) && reftype($thing) eq 'ARRAY'</code> or just <code>foo() if reftype($thing) && reftype($thing) eq 'ARRAY'</code> to prevent an annoying warning:</p><p><code><br>C:\>perl -MScalar::Util=reftype -wle "my $x; print reftype($x) eq 'ARRAY'"<br>Use of uninitialized value in string eq at -e line 1.</code></p><p>It also can not detect <code>Regexp</code> (<code>CORE::ref</code> can, as long as it's not blessed):</p><p><code><br>C:\>perl -MScalar::Util=reftype -wle "my $x = qr//; print reftype $x"<br>SCALAR</code></p><p><code>C:\>perl -wle "my $x = qr//; print ref $x"<br>Regexp</code></p><p><code>C:\></code></p><p>Fortunately, perl 5.10 comes with <code>re::is_regexp</code> to detect if an object is based on a regex or not. But what about older perls? We can remedy the situation with the help of <a href="http://search.cpan.org/dist/Data-Dump-Streamer/lib/Data/Dump/Streamer.pm">Data::Dump::Streamer::regex</a> under at least perl 5.8.x. Unfortunately Data::Dump::Streamer seems to fail under anything older than that. I wasn't aware that <code>re::is_regexp</code> is a new functionality until reached "<a href="http://perlmonks.org/?node_id=665339">ref() and Regexp</a>" discussion on PerlMonks.</p><p>I also checked <code>ref</code> documentation. As of perl 5.10 it lists these reference types:</p><p><code><br>SCALAR<br>ARRAY<br>HASH<br>CODE<br>REF<br>GLOB<br>LVALUE<br>FORMAT<br>IO<br>VSTRING<br>Regexp<br></code></p><p>Only perl 5.10's ref seems to detect VSTRING refs and since they are deprecated and the usage seems to be rare, the module does not support them. Also FORMAT is only available in perl 5.8 and newer. But frankly, I can't imagine anyone creating refs/objects based on LVALUE, FORMAT or VSTRING (hmmm... maybe only TheDamian). So, they exist only for the sake of compatibility. For the Regexp type, I've just added a dynamic dependency on Data::Dump::Streamer if <code>Scalar::Util::Reftype</code> is tried to be installed under anything older than perl 5.10.</p><p>The interface is simple. Just <code>use</code> the module to get a brand new <code>reftype</code> function:</p><p><code><br>
use Scalar::Util::Reftype;</code></p><p><code>
foo() if reftype( "string" )->hash; # foo() will never be called<br>
bar() if reftype( \$var )->scalar; # bar() will be called<br>
baz() if reftype( [] )->array; # baz() will be called<br>
xyz() if reftype( sub {} )->array; # xyz() will never be called</code></p><p><code>
$obj = bless {}, "Foo";<br>
my $rt = reftype( $obj );<br>
$rt->hash; # false<br>
$rt->hash_object; # true<br>
$rt->class; # "Foo"<br></code></p><p><code>reftype</code> will create an object based on the parameter you specified and it is possible to call test methods on the return value. It currently has these test methods:</p><p><code><br>scalar<br>array<br>hash<br>code<br>glob<br>lvalue<br>format<br>ref<br>io<br>regexp<br>scalar_object<br>array_object<br>hash_object<br>code_object<br>glob_object<br>lvalue_object<br>format_object<br>ref_object<br>io_object<br>regexp_object<br>class<br></code></p><p>Here, <code>class</code> can be thought as analogous to Scalar::Util' s blessed function. It returns the package/class name of the reference if it happens to be a blessed reference. The rest of the methods test if the parameter matches the type they define.</p><p>Oh, I've also overloaded the object <code>Scalar::Util::Reftype:reftype</code> returns, to be sure that it will not be used in boolean contexts. If one makes such a thing, then the code will suffer the consequences<nobr> <wbr></nobr>:)</p>Burak2009-09-10T03:24:00+00:00journalParse::HTTP::UserAgent: yet another user agent string parser
http://use.perl.org/~Burak/journal/39577?from=rss
<p>I was using <a href="http://search.cpan.org/dist/HTTP-BrowserDetect/">HTTP::BrowserDetect</a> for a long time. Not because it's a pice of art or accurate, but because of <a href="http://c2.com/cgi/wiki?LazinessImpatienceHubris">laziness</a> perhaps. When I had some free time, I thought about re-inventing the wheel, like <a href="http://search.cpan.org/~burak/">I did several times</a> before. The main reason for re-inventing is the source code and interface of the module (try to read it, you'll understand) and the lack of new releases. Also, it's not accurate.</p><p>There are two other alternatives though: <a href="http://search.cpan.org/dist/HTML-ParseBrowser/">HTML::ParseBrowser</a> and <a href="http://search.cpan.org/dist/HTTP-DetectUserAgent/">HTTP::DetectUserAgent</a>. The former is really good parser-wise, while the latter is actually a sniffer and does not give you a verbose result.</p><p>So, I wrote <a href="http://search.cpan.org/dist/Parse-HTTP-UserAgent/">Parse::HTTP::UserAgent</a>. It tries to be verbose and parse as much as possible from the junk named "User Agent String". It tries to identify the major browsers first and then falls back to minor/old ones with an extended probe. The parsed structure has many fields like:</p><blockquote><div><p> <tt>name Browser name. You may need to check original_name() if faker (like Maxthon).<br>version_raw Browser version<br>version version(version_raw)->numify: The float version of the parsed version.<br>original_name The original name (i.e.: Maxthon)<br>original_version The original version (i.e.: 2.0 (Maxthon))<br>os Operating system. Windows names returned instead of versions<br>lang The "user interface" language of the browser<br>toolkit [tk_name, tk_version, version(tk_version)->numify]. Gecko, Trident, etc.<br>dotnet If it has<nobr> <wbr></nobr>.NET CLR version in the string, this'll have all versions<br>mozilla If a Mozilla browser, returns Moz version: [original, version(original)->numify]<br>strength Encryption strength (I guess this does not have much value today)<br>robot UA is a robot<br>extras Any non-parsable junk. Arrayref.<br>parser The name of the parser that returned the result set<br>generic Parsed by a generic parser? Bool.<br>string The original User Agent String<br>unknown User Agent String can not be parsed<br>device ***not implemented yet<br>wap ***not implemented yet<br>mobile ***not implemented yet</tt></p></div> </blockquote><p>The module also has <code>->as_hash</code> and <code>->dumper</code> methods for debugging purposes.</p><p>The biggest difference is; it parses the fakers like Maxthon accurately. Also extracts<nobr> <wbr></nobr>.NET versions and toolkit names and versions. It also identifies <a href="http://dev.opera.com/articles/view/opera-ua-string-changes/">Opera 10</a> (btw, Opera is the first thing I install on a new system) correctly.</p><p>The version numbers are converted to decimals to ease comparison (I dislike that major/minor stuff the others implement). The conversion also removes any junk string (like "gold") from the version number. While using <a href="http://search.cpan.org/dist/version/">version</a> is good, as it handles all the nasty stuff, I got some regression from 5.6.2 smokers after releasing the module. It looks like they (5.6.2) have the pure perl version::vpp (I couldn't compile the xs version under 5.6.1 either) which has some kind of bug. I've opened a <a href="http://rt.cpan.org/Public/Bug/Display.html?id=49348">ticket about the issue</a>, but also added a workaround to fool version::vpp (postfix '.0' if version is three digits). I currently have no idea about 5.5.x but 5.6.x seem to be fine at least (also tested myself with ActivePerl 5.6.1 on a virtual Windows XP).</p><p>The module also has some example programs in it for benchmarking. I'll give some figures below. The test system is: Windows Vista Home Premium SP2 32bit & P8600 @ 2.40GHz & ActivePerl 5.10.0.1004</p><blockquote><div><p> <tt>C:\>perl -Ilib eg\bench.pl -c 1000<br>*** The data integrity is not checked in this run.<br>*** This is a benchmark for parser speeds.<br>*** Testing 161 User Agent strings on each module with 1000 iterations each.<br>
<br>This may take a while. Please stand by<nobr> <wbr></nobr>...<br>
<br> Rate HTML HTML2 Browser Parse Parse2 Detect<br>HTML 12.6/s -- -2% -63% -75% -82% -90%<br>HTML2 12.9/s 2% -- -62% -75% -81% -90%<br>Browser 34.2/s 170% 166% -- -33% -51% -73%<br>Parse 51.1/s 304% 297% 50% -- -26% -59%<br>Parse2 69.4/s 449% 439% 103% 36% -- -44%<br>Detect 125/s 888% 871% 266% 144% 80% --<br>
<br>The code took: 241.65 wallclock secs (228.21 usr + 0.08 sys = 228.29 CPU)<br>
<br>---------------------------------------------------------<br>
<br>List of abbreviations:<br>
<br>HTML HTML::ParseBrowser v1<br>HTML2 HTML::ParseBrowser v1 (re-use the object)<br>Browser HTTP::BrowserDetect v0.99<br>Detect HTTP::DetectUserAgent v0.01<br>Parse Parse::HTTP::UserAgent v0.16<br>Parse2 Parse::HTTP::UserAgent v0.16 (without extended probe)</tt></p></div> </blockquote><p>HTML::ParseBrowser is slow as hell. Even re-using the object as the doc suggests does not help. It's good that I wasn't aware of the module until now<nobr> <wbr></nobr>:p HTTP::BrowserDetect is not a good performer too. But the interface is extensive and it's kinda defacto standard in this area. It tries to match with *anything* possible and this choice slows it down (who cares if $ua->win31 is true as of today right?). HTTP::DetectUserAgent is the speedy one here. It doubles Parse::HTTP::UserAgent even when the extended probe is disabled. However it gains this speed with several CAVEATs as the version number suggests.</p><blockquote><div><p> <tt>C:\>perl -Ilib eg\accuracy.pl<br>*** This is a test to compare the accuracy of the parsers.<br>*** The data set is from the test suite. There are 161 UA strings<br>*** Parse::HTTP::UserAgent will detect all of them<br>*** A tiny fraction of the regressions can be related to wrong parsing.<br>*** Equation tests are not performed. Tests are boolean.<br>
<br>This may take a while. Please stand by<nobr> <wbr></nobr>...<br>
<br>------------------------------------------------------------------------- ---------------------<br>| Parser | Name FAILS | Version FAILS | Language FAILS | OS FAILS |<br>---------------------------------------------------------------------------<nobr>-<wbr></nobr> ------------------<br>| HTTP::DetectUserAgent | 27 - 16.77% | 37 - 23.27% | 67 - 100.00% | 35 - 24.31% |<br>| HTTP::BrowserDetect | 28 - 17.39% | 8 - 5.03% | 67 - 100.00% | 20 - 13.89% |<br>| HTML::ParseBrowser | 0 - 0.00% | 3 - 1.89% | 42 - 62.69% | 19 - 13.19% |<br>| Parse::HTTP::UserAgent | 0 - 0.00% | 3 - 1.89% | 3 - 4.48% | 4 - 2.78% |<br>----------------------------------------------------------------------------<nobr>-<wbr></nobr> -----------------</tt></p></div> </blockquote><p>Parse::HTTP::UserAgent is not perfect, but at least it seems to be close. HTML::ParseBrowser is more accurate on name/version matching. Speedy HTTP::DetectUserAgent seems to be the worst. However there is one caveat, the test data is from the Parse::HTTP::UserAgent test suite. So, Parse::HTTP::UserAgent is not actually that good yet since there are some patterns it can not match.</p><p>Note: The module is already on <a href="http://search.cpan.org/dist/Parse-HTTP-UserAgent">CPAN</a>, but you can get the latest code and non-CPAN content from <a href="http://bitbucket.org/burak/cpan-parse-http-useragent/src/">the code repository</a>. The repo also has a <code>etc/Migration.pod</code> for HTTP::BrowserDetect users.</p>Burak2009-09-04T04:25:35+00:00journalHaving a single version number in all modules in a distro
http://use.perl.org/~Burak/journal/37679?from=rss
I was trying to figure out a mechanism to somehow format all modules in a distro (Text::Template::Simple) automatically to have a single version number instead of varying versions among files. I'm not so sure if this is the best way, but I chose to manually modify the files to update the versions in them. First, I had to subclass Module::Build to alter the `Build dist` action. However, M::B has an awkward interface for subclassing. One needs to pass the sublass code as a string into the subclass() method. Weirdo<nobr> <wbr></nobr>:p But since I didn't like this interface for subclassing and I wanted to use the syntax checking/coloring of my Komodo Edit, I've decided to load the content from an external file:<br><br>my $class = Module::Build->subclass(<br>
class => 'MBSubclass',<br>
code => raw_subclass(),<br>
);<br><br>sub raw_subclass {<br>
my $file = File::Spec->catfile( 'tools', 'Build.pm' );<br>
my $FH = IO::File->new;<br>
$FH->open( $file, 'r' ) or die "Can not open($file): $!";<br>
my $rv = do { local $/; <$FH> };<br>
close $FH;<br>
return $rv;<br>}<br><br>And here is the subclass (note that there is no package declaration since M::B adds this part automatically afterwards):<br><br>use strict;<br>use vars qw( $VERSION );<br>use warnings;<br>use File::Find;<br>use constant RE_VERSION_LINE => qr{<br>
\A \$VERSION \s+ = \s+ ["'] (.+?) ['"] ; (.+?) \z<br>}xms;<br>use constant VTEMP => q{$VERSION = '%s';};<br><br>$VERSION = '0.10';<br><br>sub ACTION_dist {<br>
my $self = shift;<br>
warn sprintf(<br>
"RUNNING 'dist' Action from subclass %s v%s\n",<br>
ref($self),<br>
$VERSION<br>
);<br>
my @modules;<br>
find {<br>
wanted => sub {<br>
my $file = $_;<br>
return if $file !~ m{ \. pm \z }xms;<br>
push @modules, $file;<br>
warn "FOUND Module: $file\n";<br>
},<br>
no_chdir => 1,<br>
}, "lib";<br>
$self->_change_versions( \@modules );<br>
$self->SUPER::ACTION_dist( @_ );<br>}<br><br>sub _change_versions {<br>
my $self = shift;<br>
my $files = shift;<br>
my $dver = $self->dist_version;<br><br>
warn "DISTRO Version: $dver\n";<br><br>
foreach my $mod ( @{ $files } ) {<br>
warn "PROCESSING $mod\n";<br>
my $new = $mod . '.new';<br>
open my $RO_FH, '<:raw', $mod or die "Can not open file($mod): $!";<br>
open my $W_FH , '>:raw', $new or die "Can not open file($new): $!";<br>
my $changed;<br>
while ( my $line = readline $RO_FH ) {<br>
if ( ! $changed && ( $line =~ RE_VERSION_LINE ) ) {<br>
my $oldv = $1;<br>
my $remainder = $2;<br>
warn "CHANGED Version from $oldv to $dver\n";<br>
printf $W_FH VTEMP . $remainder, $dver;<br>
$changed++;<br>
next;<br>
}<br>
print $W_FH $line;<br>
}<br><br>
close $RO_FH or die "Can not close file($mod): $!";<br>
close $W_FH or die "Can not close file($new): $!";<br><br>
unlink($mod) || die "Can not remove original module($mod): $!";<br>
rename( $new, $mod ) || die "Can not rename( $new, $mod ): $!";<br>
warn "RENAME Successful!\n";<br>
}<br><br>
return;<br>}<br><br>It's really straightforward. Find the *.pm and them create a modified copy that has the distro's version and replace the original with the new one and resume `dist` process<nobr> <wbr></nobr>:)Burak2008-10-16T19:45:10+00:00journalText::Template::Simple 0.61 is released
http://use.perl.org/~Burak/journal/37599?from=rss
<p>
You can get if from <a href="http://search.cpan.org/~burak/Text-Template-Simple/lib/Text/Template/Simple.pm">CPAN</a><nobr> <wbr></nobr>:)
</p><p>
Actually, I've released 0.60 after several development versions. But immediately faced the infamous <a href="http://www.nntp.perl.org/group/perl.qa/2008/09/msg11568.html">World-writable Files</a> thingy. While I <i>still</i> don't think this is some serious security breach (compared to allowing arbitrary Makefile.PLs and Build.PLs entering your system), PAUSE indexer warned me (thanks to <a href="http://www.nntp.perl.org/group/perl.qa/2008/09/msg11603.html">Andreas Koenig's recent change</a>) about world-writable "directories" inside my tarball. Sice I was not using some 3rd party tar command and using Module::Build as the toolkit, I thought that this thing will not affect my distro. But I was wrong.
</p><p>
I didn't dig this much and both Archive::Tar (which handles archiving) and Module::Build lacked any info regarding this. So, after some quick investigation, as a quick fix, I've modified Module::Build::Base and changed this line in line 3704:</p><blockquote><div><p> <tt> Archive::Tar->create_archive("$file.tar.gz", 1, @$files);</tt></p></div> </blockquote><p>into this (removed adding directories to tar)</p><blockquote><div><p> <tt> Archive::Tar->create_archive("$file.tar.gz", 1, grep { !-d $_ } @$files);</tt></p></div> </blockquote><p>which seemed to solve my problem. I even opened a bug in the <a href="http://rt.cpan.org/Public/Bug/Display.html?id=39804">Module::Build RT Queue</a>. I hope they'll apply this or find a better way to fix the tarball issue. And as I said in the RT BUG: I'm surprised that <a href="http://www.nntp.perl.org/group/perl.qa/2008/09/msg11568.html">no one in the email thread</a> seem to use this trio as their environment: Windows + Module::Build + Archive::Tar<nobr> <wbr></nobr>:p
</p><p>
Anyway, lets return to the subject. I've released a new version of <a href="http://search.cpan.org/~burak/Text-Template-Simple/lib/Text/Template/Simple.pm">Text::Template::Simple</a> and it is kind of a milestone release including these new stuff:
</p><ul>
<li>Dynamic Includes (a.k.a processed includes)</li><li>Interpolation in includes</li><li>Chomping (global & per directive)</li><li>Template name access through $0</li><li>Explicit types to compile()</li></ul><p>
Chomping is similar to what TT has and maybe more. The biggest and tricky part was the dynamic includes and interpolation in includes. I've implemented that stuff several times before reaching it's current status (actually same thing happened with chomping). Includes currently miss stuff like parameter passing and applying filters, but I'll add these features eventually. At the moment it is possible to use things like:</p><blockquote><div><p> <tt><% my $file = "t/data/interpolate_data"; %><br><%* $file . ".tts" %> # dynamic<br><%+ $file . ".tts" %> # static</tt></p></div> </blockquote><p>or without interpolation:</p><blockquote><div><p> <tt><%* t/data/interpolate_data.tts %> # dynamic<br><%+ t/data/interpolate_data.tts %> # static</tt></p></div> </blockquote><p>And chomping:</p><blockquote><div><p> <tt>Test<br> <%=- $foo -%><br>123</tt></p></div> </blockquote><p>Template name access:</p><blockquote><div><p> <tt> I am <%= $0 %></tt></p></div> </blockquote><p>See <a href="http://search.cpan.org/~burak/Text-Template-Simple/lib/Text/Template/Simple.pm">the documentation</a> for more information.
</p><p>
I like TT's features and even have to use it @ $work, but I need a non-mini-language thing. And CPAN is filled with re-invented wheels right?<nobr> <wbr></nobr>:)
</p>Burak2008-10-03T20:00:32+00:00journalHello World
http://use.perl.org/~Burak/journal/36901?from=rss
<p>I don't know how long I've been a user in use Perl, but this is my first journal entry. Yay!<nobr> <wbr></nobr>:)</p><p>I've released <a href="http://search.cpan.org/dist/Sys-Info/">Sys::Info</a> 0.60 today. It's a milestone version that has mostly compatible Linux & Windows & Unknown (Generic) drivers. Windows OS driver now supports Windows Server 2008 and a lot of other Windows editions too. Windows Server 2008 support was a little bit tricky since Microsoft did not bump the version number with this os release (unlike Server 2003) and it has the same version number as Windows Vista. It is only detectable through the editions.</p><p>For the Windows driver, my original plan was to drop WMI interface and use Win32::API, however I've dropped Win32::API idea in favor of XS and WMI turned out to be some huge beast that can not be duplicated easily (or not at all). I was lost on MSDN on this subject<nobr> <wbr></nobr>:p</p><p>Linux driver also has improved OS support too. I've implemeted several OS meta keys and also tried to mimic the "Edition" information for distros. Currently, only Ubuntu is supported by the edition() method.</p><p>There is also a new cdkey() function to return the cdkeys for the OS and Office software. You can guess that this only has a meaning and only implemeted in the Windows driver<nobr> <wbr></nobr>:) It's basically a shortcut to learn the cdkey quickly in case you need it. Original code for that was taken from a PerlMonks thread.</p><p>There are some improvements on the CPU detection side too. Hyper Threading detection is improved and it now returns the number of threads if Hyper Threading is in effect. Also, the data structure now has the "architecture" key. However the load() method has a caveat it returns the current CPU usage instead of the load average (which does not exist in Windows anyway).</p><p>Sys::Info was initiated back in 2004 while I was supposed to write down my undergraduate thesis some time late at night (3 am Eternal<nobr> <wbr></nobr>:p) and evolved from that. The idea was to display the OS & CPU name (and HTTP Server name) correctly in a CMS system I was (and still -- I'm lazy --) working on, but this thing resulted with a module suite. The first CPAN release was two years later from that... </p><p>I'm trying to create a single and mostly equal interface between the OS specific drivers for system information but it turned out that this is not as easy as I thought back then. </p><p>Future plans:</p><ul>
<li> Improving current drivers (Windows/Linux/Unknown).</li><li><ul> <li>- Maybe split the drivers into their own distros.</li></ul></li><li> Creating a separate distro for Sys::Info::Device::BIOS</li><li> Adding support for some other devices</li><li> Create a mechanism for drop-in driver/device system.</li><li> (In a far far future) Create a *BSD driver (which I didn't even use once 'till now)</li><li> (In a far far future) If (somehow) I can have access to a Mac(book(\s?Pro|)?); create a MacOSX (darwin?) driver</li></ul><p>
Patches & Suggestions are welcome as always<nobr> <wbr></nobr>:)
</p><blockquote><div><p> <tt>perl -MSys::Info -wle "sub n{Sys::Info->os->name(@_)} print for n(),n(long=>1),n(edition=>1),n(edition=>1,long=>1)"</tt></p></div> </blockquote><p>Example outputs:</p><blockquote><div><p> <tt>(1)<br> <br>Windows Server 2008<br>Windows Server 2008 Service Pack 1 build 6001<br>Windows Server 2008 Enterprise Edition Full Installation<br>Windows Server 2008 Enterprise Edition Full Installation Service Pack 1 build 6001<br> <br>(2)<br> <br>Windows Vista<br>Windows Vista Service Pack 1 build 6001<br>Windows Vista Enterprise Edition<br>Windows Vista Enterprise Edition Service Pack 1 build 6001<br> <br>(3)<br> <br>Windows XP<br>Windows XP Service Pack 3 build 2600<br>Windows XP Professional<br>Windows XP Professional Service Pack 3 build 2600</tt></p></div> </blockquote><p>And here is an Ubuntu output<nobr> <wbr></nobr>;)</p><blockquote><div><p> <tt>perl -MSys::Info -wle 'sub n{Sys::Info->os->name(@_)} print for n(),n(long=>1),n(edition=>1),n(edition=>1,long=>1)'<br> <br>Ubuntu Linux<br>Ubuntu Linux 8.04 (kernel: 2.6.24-19-generic)<br>Ubuntu Linux (Hardy Heron)<br>Ubuntu Linux (Hardy Heron) 8.04 (kernel: 2.6.24-19-generic)</tt></p></div> </blockquote>Burak2008-07-13T14:32:09+00:00journal