Gossamer Forum
Home : General : Perl Programming :

Hmm that was a fluke!

Quote Reply
Hmm that was a fluke!
I just found I could do something by accident. I keep thinking there must be a simple explanation as to why it happened but I can't think why :)

$_ = 'Hello';

Now, without using:

print $_;

or

print;

or

print "Hello";

....can anyone print Hello ?
Quote Reply
Re: [Paul] Hmm that was a fluke! In reply to
Erm, print; ???? Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy.] Hmm that was a fluke! In reply to
did you not read my post properly or are you acting dumb on purpose? Tongue
Quote Reply
Re: [Paul] Hmm that was a fluke! In reply to
Take a joke paul Wink
Quote Reply
Re: [Paul] Hmm that was a fluke! In reply to
printf();

write();

- wil
Quote Reply
Re: [Wil] Hmm that was a fluke! In reply to
No no no....I said something I encountered by fluke...its not going to be something standard. Smile
Quote Reply
Re: [Paul] Hmm that was a fluke! In reply to
But you also just asked how do you print 'hello' without using your choice of three ways to print - which I did ;-)

- wil
Quote Reply
Re: [Wil] Hmm that was a fluke! In reply to
>>I keep thinking there must be a simple explanation as to why it happened<<

Why would I say that if I just used printf Laugh

You aren't going to get tha answer :)

Last edited by:

Paul: Apr 13, 2002, 12:51 PM
Quote Reply
Re: [Paul] Hmm that was a fluke! In reply to
Obviously not; so please englighten us :-)

- wil
Quote Reply
Re: [Wil] Hmm that was a fluke! In reply to
$_='Print me';

print >1;
Quote Reply
Re: [Paul] Hmm that was a fluke! In reply to
Um? Didn't you say without using print?

- wil
Quote Reply
Re: [Wil] Hmm that was a fluke! In reply to
Err no I said without using:

print $_;
print;
print "Hello";

Last edited by:

Paul: Apr 14, 2002, 7:20 AM