#!/usr/bin/perl -- use strict; use warnings; use Win32::GUI; my $mw = new Win32::GUI::DialogBox( -text => 'Test', -left => 300, -top => 100, -left => 60, -width => 200, -height => 200, ); $mw->Show(); my $result = $mw->AddTextfield( -left => 0, -top => 40, -size => [ 180, 100 ], -vscroll => 1, -multiline => 1, ); my $button = $mw->AddButton( -name => 'button', -text => 'Go', -left => 120, -top => 10, -visible => 1, ); Win32::GUI::Dialog; sub button_Click { while (<DATA>) { $result->Append("$_\r\n"); } $result->Append("Checking the basics\n"); $result->Append( __FILE__ . "\n" ); $result->Append( __PACKAGE__ . "\n" ); $result->Append( __LINE__ . "\n" ); $result->Append( "(-s DATA) " . ( -s DATA ) . "\n" ); $result->Append( "tell(DATA) " . tell(DATA) . "\n" ); $result->Append( "fileno(DATA) " . fileno(DATA) . "\n" ); if ( fileno DATA ) { $result->Append( "seek DATA,0 ==> " . seek( DATA, 0, 0 ) . "\n" ); while (<DATA>) { $result->Append("$_\r\n"); } } ## end if ( fileno DATA ) return; } ## end sub button_Click __DATA__ This is LINE1 This is LINE2 This is LINE3
Checking the basics script/test.pl main 44 (-s DATA) 1416 tell(DATA) 1416 fileno(DATA) 6 seek DATA,0 ==> 1 package main; shift @INC; #line 1 "script/test.pl" use Filter::Crypto::Decrypt; ......encrypted junk here

In reply to Re: What does the Filter::Crytpo module do to the DATA section? by Anonymous Monk
in thread What does the Filter::Crytpo module do to the DATA section? by ZJ.Mike.2009

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.