Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: unlink $file OR... OR..

by sulfericacid (Deacon)
on Aug 30, 2007 at 03:43 UTC ( #635982=note: print w/replies, xml ) Need Help??


in reply to unlink $file OR... OR..

Aye, you can use shift as though it's a variable. I do many a print shift;. It saves on typing and stress of coming up with yet ANOTHER unique variable name.

UPDATE: Adding code for the original question

#!/usr/bin/perl use warnings; use strict; my @list; push(@list, "blah.txt"), print qq(Error\n) unless unlink "blah.txt"; print @list;


"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://635982]
help
Chatterbox?
[Corion]: Discipulus: I've looked for something but never found anything good
Corion looks at the SVG. If the different regions have IDs, then you can colorize the map by providing a CSS file with the colors.
[Corion]: Meh. IE crashes when displaying that SVG as saved from Firefox ...
LanX blame Canada!
[Discipulus]: to crash is not the default behaviour of IE? ;=)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-03-23 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.