On Thu, 07 Feb 2008, Kevin Beverly wrote: > hmmmm.... for some reason, i thought that "use Win32::OLE::Variant" > did stringify Win32::OLE::Variant objects. my understanding now is > that it just makes these display correctly if they are dates. > > i am a newbie to Win32::OLE::Variant. > > could you point me towards some example code that shows how to: > > 1. test whether or not a variable is indeed a Win32::OLE::Variant date > object
if (ref($var) && UNIVERSAL::isa($var,'Win32::OLE::Variant')) { # $var is a Win32::OLE::Variant object } > 2. stringify a Win32::OLE::Variant date object my $str = "$var"; # $str now contains the stringified representation of $var Cheers, -Jan _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs