Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Hate Mondays

by hash (Scribe)
on Aug 01, 2003 at 17:22 UTC ( [id://280050]=note: print w/replies, xml ) Need Help??


in reply to Re: Hate Mondays
in thread Hate Mondays

#!/usr/bin/perl my @days = ("Su", "Mo", "Tu", "We", "Th", "Fr", "Sa") ; foreach (@days) { if ($_=~/Fr/) { print "Friday OWNZ!\n" } else { print "$_\n" ; } }

Replies are listed 'Best First'.
Re: Re: Re: Hate Mondays
by projekt21 (Friar) on Aug 01, 2003 at 17:37 UTC
    #!/usr/bin/perl use LWP::Simple; my $source = get("http://www.time.com/time/"); my ($first) = ($source =~ /<!--([^<>]+)-->/); print "Friday rocks!\n" if $first =~ /\bFri\b/;

    alex pleiner <alex@zeitform.de>
    zeitform Internet Dienste

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-23 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found