Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^8: How is perl able to handle the null byte?

by BrowserUk (Patriarch)
on Jun 18, 2006 at 07:13 UTC ( #556058=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ## Why oh why does it try to modify the input!?
    my $uPath = encode( 'UTF-16LE', $_ = "\\\\?\\c:\\some\\path", 1 );
    
  2. or download this
    use Encode;
    
    ...
    
    print unpack 'H*', $uPath;;
    5c005c003f005c0043003a005c0073006f006d0065005c007000610074006800
    
  3. or download this
    HANDLE FindFirstFileW( LPCTSTR lpFileName, LPWIN32_FIND_DATA lpFindFil
    +eData )
    
    LPTCSTR => long pointer to (array of) TCHAR
    TCHAR   => wchar_t
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://556058]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2022-08-16 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?