Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Please help me recover my Perl script.

2 views
Skip to first unread message

Parag Kalra

unread,
Dec 25, 2009, 12:35:14 AM12/25/09
to Perl Beginners
Hello All,

I was coding my Perl script in Notepad++ editor and it was on verge of
completion.

All of a sudden my machine rebooted. And after that I found all my data
lost. It is containing series of 'NUL' characters.

However size of the Perl script is same as it was earlier.

Please help me recover my Perl script.

TIA

Cheers,
Parag

Parag Kalra

unread,
Dec 25, 2009, 2:07:53 AM12/25/09
to Perl Beginners
Can anyone please let me know how to use 'iconv' command with Perl script.

I mean what should be my input and output file format while using 'iconv'
with a Perl script which will help me recover my Perl script.

Hey BTW Merry Christmas to all. :)

Cheers,
Parag

Randal L. Schwartz

unread,
Dec 25, 2009, 9:18:49 AM12/25/09
to begi...@perl.org
>>>>> "Parag" == Parag Kalra <parag...@gmail.com> writes:

Parag> I was coding my Perl script in Notepad++ editor and it was on verge of
Parag> completion.

Parag> All of a sudden my machine rebooted. And after that I found all my data
Parag> lost. It is containing series of 'NUL' characters.

Welcome to Windows. Perhaps you should be using a more programmer-friendly
operating system.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

Shlomi Fish

unread,
Dec 27, 2009, 5:19:48 AM12/27/09
to begi...@perl.org, Parag Kalra
On Friday 25 Dec 2009 09:07:53 Parag Kalra wrote:
> Can anyone please let me know how to use 'iconv' command with Perl script.
>
> I mean what should be my input and output file format while using 'iconv'
> with a Perl script which will help me recover my Perl script.
>

I think it's from UTF-16 to UTF-8.

> Hey BTW Merry Christmas to all. :)
>

Happy holidays and happy new year to all!

Regards,

Shlomi Fish

> Cheers,
> Parag
>
> On Fri, Dec 25, 2009 at 11:05 AM, Parag Kalra <parag...@gmail.com> wrote:
> > Hello All,
> >
> > I was coding my Perl script in Notepad++ editor and it was on verge of
> > completion.
> >
> > All of a sudden my machine rebooted. And after that I found all my data
> > lost. It is containing series of 'NUL' characters.
> >
> > However size of the Perl script is same as it was earlier.
> >
> > Please help me recover my Perl script.
> >
> > TIA
> >
> > Cheers,
> > Parag
>

--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
"The Human Hacking Field Guide" - http://shlom.in/hhfg

Bzr is slower than Subversion in combination with Sourceforge.
( By: http://dazjorz.com/ )

Shlomi Fish

unread,
Dec 27, 2009, 5:36:09 AM12/27/09
to begi...@perl.org, Parag Kalra
On Sunday 27 Dec 2009 12:19:48 Shlomi Fish wrote:
> On Friday 25 Dec 2009 09:07:53 Parag Kalra wrote:
> > Can anyone please let me know how to use 'iconv' command with Perl
> > script.
> >
> > I mean what should be my input and output file format while using 'iconv'
> > with a Perl script which will help me recover my Perl script.
>
> I think it's from UTF-16 to UTF-8.
>

Oh! And next time, you should make use of a version control system preferably
with a remote and reliable physical server:

http://better-scm.berlios.de/ (warning: this is a site I originated and
maintain.)

I should note that the choice of version control system is a topic of a lot of
heated debate. If you still cannot make a decision based on the link (and the
links extending from there), feel free to ask for recommendations in private.

Regards,

Shlomi Fish

> > Hey BTW Merry Christmas to all. :)
>
> Happy holidays and happy new year to all!
>
> Regards,
>
> Shlomi Fish

--

-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/

Parody on "The Fountainhead" - http://shlom.in/towtf

Parag Kalra

unread,
Dec 27, 2009, 6:11:03 AM12/27/09
to Shlomi Fish, begi...@perl.org
>
> I think it's from UTF-16 to UTF-8.
>
>

That doesn't seem to work.

When I try to view my roasted file through 'less' command I get following
output:

# less Test.pl
*"Test.pl" may be a binary file. See it anyway? *

Is there a way I can convert this binary file to its initial readable state.

Owen

unread,
Dec 27, 2009, 6:19:13 AM12/27/09
to Parag Kalra, Perl Beginners


What does it say in a hex editor?
--

Owen

Parag Kalra

unread,
Dec 27, 2009, 6:28:19 AM12/27/09
to rc...@pcug.org.au, Perl Beginners
>
> What does it say in a hex editor?
>


# hexdump Test.pl
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0001090 0000 0000
0001094

Cheers,
Parag

Owen

unread,
Dec 27, 2009, 6:48:46 AM12/27/09
to Parag Kalra, Perl Beginners

I would take a guess and say don't waste anymore time on it. Put your
energies in rewriting the program

--

Owen

0 new messages