Pilot(3)
Pilot(3) π β User Contributed Perl Documentation
okay so bestie, this is the Pilot(3) page from the User Contributed Perl Documentation, and it's giving vintage Palm PDA realness. It's got a whole list of commands, and we're gonna go through every single one. π
Commands include:
Notice! This information is out of date, and potentially quite misleading.
fr fr, read that twice. This page is old, so don't come for me if something feels weird. Now, the commands:
PDA::Pilot::Appointment::Unpack(buffer)β gives you back a hash reference with the appointment (datebook entry) in a usable format, when you hand it a record from a.pdbfile or a Pilot database. ποΈPDA::Pilot::Appointment::Pack(buffer)β you give it a hash reference shaped like the one the previous call makes, and it returns one single string that's ready to store in a Pilot's database. π¦PDA::Pilot::Appointment::UnpackAppInfo(buffer)β returns a hash reference containing the appointment (datebook entry) in a usable format, given the AppInfo record from a.pdbfile or a Pilot database. β¨PDA::Pilot::Appointment::PackAppInfo(buffer)β you pass in a hash reference in the form the previous call generates, and it returns one single string suitable for storing in a Pilot's database AppInfo block. πPDA::Pilot::Memo::Unpack(buffer)β returns a hash reference containing the appointment (datebook entry) in a usable format, given a record from a.pdbfile or a Pilot database. yes, it says appointment even here β that's the page's whole vibe. πPDA::Pilot::Memo::Pack(buffer)β given a hash reference in the form that the previous call generates, it returns a single string suitable for storing in a Pilot's database. πPDA::Pilot::Memo::UnpackAppInfo(buffer)β returns a hash reference containing the appointment (datebook entry) in a usable format, given the AppInfo record from a.pdbfile or a Pilot database. π¦PDA::Pilot::Memo::PackAppInfo(buffer)β given a hash reference in the form that the previous call generates, it returns a single string suitable for storing in a Pilot's database AppInfo block. πΈPDA::Pilot::ToDo::Unpack(buffer)β returns a hash reference containing the appointment (datebook entry) in a usable format, given a record from a.pdbfile or a Pilot database. βPDA::Pilot::ToDo::Pack(buffer)β given a hash reference in the form that the previous call generates, it returns a single string suitable for storing in a Pilot's database. πPDA::Pilot::ToDo::UnpackAppInfo(buffer)β returns a hash reference containing the appointment (datebook entry) in a usable format, given the AppInfo record from a.pdbfile or a Pilot database. β¨PDA::Pilot::ToDo::PackAppInfo(buffer)β given a hash reference in the form that the previous call generates, it returns a single string suitable for storing in a Pilot's database AppInfo block. π«PDA::Pilot::Address::Unpack(buffer)β returns a hash reference containing the appointment (datebook entry) in a usable format, given a record from a.pdbfile or a Pilot database. πPDA::Pilot::Address::Pack(buffer)β given a hash reference in the form that the previous call generates, it returns a single string suitable for storing in a Pilot's database. π¬PDA::Pilot::Address::UnpackAppInfo(buffer)β returns a hash reference containing the appointment (datebook entry) in a usable format, given the AppInfo record from a.pdbfile or a Pilot database. π·οΈPDA::Pilot::Address::PackAppInfo(buffer)β given a hash reference in the form that the previous call generates, it returns a single string suitable for storing in a Pilot's database AppInfo block. πPDA::Pilot::Mail::Unpack(buffer)β returns a hash reference containing the appointment (datebook entry) in a usable format, given a record from a.pdbfile or a Pilot database. π§PDA::Pilot::Mail::Pack(buffer)β given a hash reference in the form that the previous call generates, it returns a single string suitable for storing in a Pilot's database. π¨PDA::Pilot::Mail::UnpackAppInfo(buffer)β returns a hash reference containing the appointment (datebook entry) in a usable format, given the AppInfo record from a.pdbfile or a Pilot database. π©PDA::Pilot::Mail::PackAppInfo(buffer)β given a hash reference in the form that the previous call generates, it returns a single string suitable for storing in a Pilot's database AppInfo block. π
PDA::Pilot::Socket::socket(domain, type, protocol)β same as the pi-link routine calledpi_socket. πPDA::Pilot::Socket::close(socket)β same as the pi-link routine calledpi_close. πͺPDA::Pilot::Socket::write(socket, string)β same as the pi-link routine calledpi_write. βοΈPDA::Pilot::Socket::read(socket, len)β same as the pi-link routine calledpi_write(and yes, it returns the read data as the result). πPDA::Pilot::Socket::listen(socket, backlog)β same as the pi-link routine calledpi_listen. πPDA::Pilot::Socket::bind(socket, sockaddr)β same as the pi-link routine calledpi_bind.Sockaddrmay either be a packed string containing api_sockaddrstructure, or a hash reference containing"device","family", and"port"keys. π§·PDA::Pilot::Socket::accept(socket)β same as the pi-link routine calledpi_accept. If the connection is successful, it returns a reference to a hash containing the remote address, as described above. If it fails, it returnsundef. π€
PDA::Pilot::DLP::errno()β returns the last DLP error, resetting that error to zero. π¨PDA::Pilot::DLP::GetSysDateTime(socket)β same as the DLP calldlp_GetSysDateTime. If it works, it returns the time; otherwise it returnsundef. β°PDA::Pilot::DLP::SetSysDateTime(socket, time)β same as the DLP calldlp_SetSysDateTime.timemust be atime_tvalue. π°οΈPDA::Pilot::DLP::ReadSysInfo(socket)β same as the DLP calldlp_ReadSysInfo. If it works, it returns a reference to a hash containing system information. π₯οΈPDA::Pilot::DLP::ReadStorageInfo(socket, cardno)β same as the DLP calldlp_ReadStorageInfo. If it works, it returns a reference to a hash containing information on the given memory card. πΎPDA::Pilot::DLP::ReadUserInfo(socket)β same as the DLP calldlp_ReadUserInfo. If it works, it returns a reference to a hash containing information about user settings. π€PDA::Pilot::DLP::WriteUserInfo(socket, info)β same as the DLP calldlp_WriteUserInfo.infomust be a reference to a hash containing data similar to that returned byReadUserInfo(Note: the password can not be set through this call.) πPDA::Pilot::DLP::OpenDB(socket, cardno, mode, name)β same as the DLP calldlp_OpenDB. If it works, it returns a database handle; otherwise it returnsundef. ποΈPDA::Pilot::DLP::CloseDB(socket, handle)β same as the DLP calldlp_CloseDB. πPDA::Pilot::DLP::EndOfSync(socket, status)β same as the DLP calldlp_EndOfSync. πPDA::Pilot::DLP::AbortSync(socket)β same as the DLP calldlp_AbortSync. πPDA::Pilot::DLP::MoveCategory(socket, handle, fromcat, tocat)β same as the DLP calldlp_MoveCategory. πPDA::Pilot::DLP::ResetSystem(socket)β same as the DLP calldlp_ResetSystem. πPDA::Pilot::DLP::OpenConduit(socket)β same as the DLP calldlp_OpenConduit. πPDA::Pilot::DLP::AddSyncLogEntry(socket, message)β same as the DLP calldlp_AddSyncLogEntry. πPDA::Pilot::DLP::CleanUpDatabase(socket, handle)β same as the DLP calldlp_CleanUpDatabase. π§ΉPDA::Pilot::DLP::ResetSyncFlags(socket, handle)β same as the DLP calldlp_ResetSyncFlags. π©PDA::Pilot::DLP::ResetDBIndex(socket, handle)β same as the DLP calldlp_ResetDBIndex. π’PDA::Pilot::DLP::ResetLastSyncPC(socket)β same as the DLP calldlp_ResetLastSyncPC. π₯οΈPDA::Pilot::DLP::DeleteCategory(socket, handle, category)β same as the DLP calldlp_DeleteCategory. ποΈPDA::Pilot::DLP::DeleteRecord(socket, handle, all, id)β same as the DLP calldlp_DeleteRecord. βPDA::Pilot::DLP::ReadDBList(socket, cardno, flags, start)β same as the DLP calldlp_ReadDBList. If it works, it returns a reference to a hash containing DB information. If it fails, it returnsundef. πPDA::Pilot::DLP::FindDBInfo(socket, cardno, flags, name, type, creator)β same as the DLP calldlp_FindDBInfo. If it works, it returns a reference to a hash containing DB information. If it fails, it returnsundef. πPDA::Pilot::DLP::ReadFeature(socket, creator, number)β same as the DLP calldlp_ReadFeature. If it works, it returns the feature value. If it fails, it returnsundef. βPDA::Pilot::DLP::ReadAppBlock(socket, handle)β same as the DLP calldlp_ReadAppBlock. If it works, it returns the app block. If it fails, it returnsundef. π§±PDA::Pilot::DLP::ReadSortBlock(socket, handle)β same as the DLP calldlp_ReadSortBlock. If it works, it returns the app block. If it fails, it returnsundef. π§±PDA::Pilot::DLP::WriteAppBlock(socket, handle, block)β same as the DLP calldlp_WriteAppBlock. βοΈPDA::Pilot::DLP::WriteSortBlock(socket, handle, block)β same as the DLP calldlp_WriteSortBlock. βοΈPDA::Pilot::DLP::ReadOpenDBInfo(socket, handle)β same as the DLP calldlp_ReadOpenDBInfo. βΉοΈPDA::Pilot::DLP::ReadRecordByIndex(socket, handle, index)β same as the DLP calldlp_ReadRecordByIndex. If the call fails, it returnsundef. Otherwise, in scalar context it returns the read record; in array it returns the record, id, index, attr, and category, in that order. πPDA::Pilot::DLP::ReadRecordById(socket, handle, id)β same as the DLP calldlp_ReadRecordById. If the call fails, it returnsundef. Otherwise, in scalar context it returns the read record; in array it returns the record, id, index, attr, and category, in that order. πPDA::Pilot::DLP::ReadNextModifiedRec(socket, handle)β same as the DLP calldlp_ReadNextModifiedRec. If the call fails, it returnsundef. Otherwise, in scalar context it returns the read record; in array it returns the record, id, index, attr, and category, in that order. πPDA::Pilot::DLP::ReadNextRecInCategory(socket, handle, category)β same as the DLP calldlp_ReadNextRecInCategory. If the call fails, it returnsundef. Otherwise, in scalar context it returns the read record; in array it returns the record, id, index, attr, and category, in that order. πPDA::Pilot::DLP::ReadNextModifiedRecInCategory(socket, handle, category)β same as the DLP calldlp_ReadNextModifiedRecInCategory. If the call fails, it returnsundef. Otherwise, in scalar context it returns the read record; in array it returns the record, id, index, attr, and category, in that order. πPDA::Pilot::DLP::WriteRecord(socket, handle, record, id, attr, category)β same as the DLP calldlp_WriteRecord. πΎPDA::Pilot::DLP::ReadResourceByType(socket, handle, type, id)β same as the DLP calldlp_ReadResourceByType. If the call fails, it returnsundef. Otherwise, in scalar context it returns the read record; in array it returns the record, type, id, and index, in that order. π§©PDA::Pilot::DLP::ReadResourceByIndex(socket, handle, index)β same as the DLP calldlp_ReadResourceByIndex. If the call fails, it returnsundef. Otherwise, in scalar context it returns the read record; in array it returns the record, type, id, and index, in that order. π’PDA::Pilot::DLP::WriteResource(socket, handle, record, type, id)β literally just the DLP calldlp_WriteResource, bestie. Same name, same energy. πPDA::Pilot::DLP::DeleteResource(socket, handle, all, type, id)β same as the DLP calldlp_DeleteResource. It deletes. It takesall, so yeah, you can nuke the whole thing. π₯PDA::Pilot::DLP::CallApplication(socket, creator, type, action, data)β same as the DLP calldlp_CallApplication. You're ringing up another app on the Palm and handing itcreator,type,actionanddata. β¨
π¦ the PDA::Pilot::File era π¦
PDA::Pilot::File::open(name)β same aspi_file_open. If it works out, you get aPDA::Pilot::Fileobject back, and that's the slay. πPDA::Pilot::File::close(file)β same aspi_file_close. Close the door behind you, bestie. πͺPDA::Pilot::File::get_app_info(file)β same aspi_file_get_app_info.PDA::Pilot::File::get_sort_info(file)β same aspi_file_get_sort_info.PDA::Pilot::File::get_entries(file)β same aspi_file_get_entries.PDA::Pilot::File::read_resource(file, index)β same aspi_file_read_resource. It hands you back(record, type, id, index)β a whole little bundle, so cute. πPDA::Pilot::File::read_record(file, index)β same aspi_file_read_record. Returns(record, id, index, attr, category). Five things. Iconic.PDA::Pilot::File::read_record_by_id(file, type, id)β same aspi_file_read_record_by_id. Returns(record, id, index, attr, category), same lineup as above. β¨PDA::Pilot::File::create(name, info)β same aspi_file_create. And heads up:infois a reference to a hash containingdbinfodata, okay? Don't come at me with anything else. π«ΆPDA::Pilot::File::get_info(file)β same aspi_file_get_info.PDA::Pilot::File::set_info(file, info)β same aspi_file_set_info.PDA::Pilot::File::set_app_info(file, data)β same aspi_file_set_app_info.PDA::Pilot::File::set_sort_info(file, data)β same aspi_file_set_sort_info.PDA::Pilot::File::append_resource(file, data, type, id)β same aspi_file_append_resource. Slap that resource on the end. πPDA::Pilot::File::append_record(file, data, attr, category, id)β same aspi_file_append_record. Record goes on the end,attr,categoryandidcome along for the ride. πΈPDA::Pilot::File::install(file, socket, cardno)β same aspi_file_install. Sending it over to the device viasocket, onto cardcardno. π¦PDA::Pilot::File::retrieve(file, socket, cardno)β same aspi_file_retrieve. And this is the glow-up in reverse: pulling it back off cardcardnothroughsocket. π
reminder bestie: every single one of these is a thin lil wrapper β "same as" the C call it's named after. That's the whole vibe. The Perl side is just there to make it cute. π
and that's a wrap on Pilot(3) fr fr π this one's from perl v5.42.0, dated 2025-07-25 β go forth and sync, you absolute legend ππ
π¦ where this page comes from
- fedora 43: pilot-link 2:0.12.5-66.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms